Why is Javascript called Javascript, if it has nothing to do with Java?

Minecraft increase allocated ram Java error "could not create Java virtual machine error"?

  • Okay, so I got Minecraft not too long ago and it's been lagging a little bit, so I decided to boost my performance I would dedicate more ram space to the game itself. This is how I did it: 1.I created a new folder (appropriately called New folder) and a text document on my desktop and placed the text document in the folder along with minecraft. 2.I inserted this into the text document: @ECHO OFF "C:\Program files (x86)\Java\jre6\bin\javaw.exe" -Xmx2048m -Xms2048m -jar "C:\Users\Tyler\Desktop\New folder\minecraft.exe 3.I saved the document with a .bat ending to make it into a batch file. In order for the increased ram dedicated to the game to take affect, you are apparently supposed to double click the batch file, but when I do that, I get a Javascript command screen with nothing in it and an error showed up saying "could not create the Java virtual machine". I've tried redoing the path in the batch file to be as exact as I can possibly get it to be, and I've updated my Java to the most current update in Java SE 6 and that hasnt worked. Anyone know anything else I can try?

  • Answer:

    you can't run an exe (minecraft.exe in this case) in java! you should point it to a .jar file, not an .exe.

Tyler Gates at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.