Increasing Java Heap Size

前端 未结 6 1707
死守一世寂寞
死守一世寂寞 2021-01-28 02:43

I\'m trying to increase value of heap size of my jvm, but it doesn\'t work. Could anybody help me with this geek problem? My configuration are follow: Windows 7 x64, 4 GB, i3 CP

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-28 03:25

    The error you have got in the last screen shot is about unavailability of the class file to run.
    You should provide class file which includes main function while running java command.

    java -Xmx2000M -Xms1000m MyClass
    

    Considering you have MyClass.class in your classpath.

提交回复
热议问题