Help with allocating more memory to Minecraft


  1. Posts : 18
    Windows 7 Ultimate 32bit.
       #1

    Help with allocating more memory to Minecraft


    I have 2GB of RAM and i use maybe half a gig.After doing some research I've seen some people allocating more memory to minecraft by creating a .bat file and inserting this coding (assuming I am using the correct words. Feel free to correct me):
    java -Xmx512m -jar Minecraft2.jar
    stop
    When i run it,i get this error
    Any suggestions about this problem?
      My Computer


  2. Posts : 2,072
    Windows 7 x64 Professional SP1
       #2

    Hello there, bogdan98nitu

    This error happens due to the fact that the PATH of your java installation is not set in your system's environment variables.

    You need to add your Java's installation path into your system variables following these steps:-


    1) Open the System Properties box by pressing win key/start, type in sysdm.cpl, right click on the entry that appears and select run as administrator.


    2) Select the Advanced tab at the top of the box.

    Help with allocating more memory to Minecraft-capture1.png


    3) Click on Environment Variables

    Help with allocating more memory to Minecraft-capture2.png


    4) Next, head to the Path entry of your System variables box, select it, and press Edit.

    (Scroll down until you find it; alternatively if you're the only user on the machine, you can perform these steps at the Path entry of your User variables box)

    Help with allocating more memory to Minecraft-capture3.png


    5) In the box that pops up, type in the full path of the location of your Java installation (e.g. C:\Program Files\Java), at the very end of the other variables by adding the ; symbol to the last entry present and following it up with your own.

    In this example I'm adding some tools used by the Windows Performance Toolkit installed in the folder D:\Apps\WPT x64 to the path, notice the ; symbol after the previous entry.

    DO
    NOT delete any of the other variables.


    Help with allocating more memory to Minecraft-capture4.png


    6) Press OK, and OK again on the next box and another OK to the final box


    7) Reboot your computer


    The path of the java installation should be recognised and you shouldn't encounter that issue again

    Hope that helps.
      My Computer


  3. Posts : 43
    Windows 7 Home Premium 64bit
       #3

    H all I was wondering im sure you've all seen the video tutorials where you change your java run time parameters but it never works Ive changed mine correctly as far as I no Ive restarted its still there and I open up minecraft no affect I don't get it is there a way to fix this please help !!!
      My Computer


  4. Posts : 2,072
    Windows 7 x64 Professional SP1
       #4

    ComputerN00b said:
    H all I was wondering im sure you've all seen the video tutorials where you change your java run time parameters but it never works Ive changed mine correctly as far as I no Ive restarted its still there and I open up minecraft no affect I don't get it is there a way to fix this please help !!!
    You need to make a new thread in the gaming subforum to discuss this issue; it's off-topic and unrelated to the OP's main query which has been answered.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:48.
Find Us