Tuesday, April 30, 2024
Welcome, Guest
Username Password: Remember me

Adding Ram...
(1 viewing) (1) Guest
Report Issues Here!
  • Page:
  • 1

TOPIC: Adding Ram...

Like this thread on Facebook! Add this thread do Google Buzz

Adding Ram... 10 years, 11 months ago #34990

  • MrBombe7
  • OFFLINE
  • Senior Boarder
  • Posts: 44
  • Karma: 0
I've tried to set my allocated memory to 8G but every time i run the .bat it repeats the directory my minecraft.exe is in and says no acces to jar file >_>.

Windows 8
16G ram
64bit
Java - 64bit

I cheked the .bat like 20 times, here is the text in it:

javaw -Xmx8192m -Xms4096 -jar "C:\Users\Jakob\Desktop\minecraft.exe"

Re: Adding Ram... 10 years, 11 months ago #34991

  • Chifilly
  • OFFLINE
  • Official TWK Admin
  • Yes?
  • Posts: 1046
  • Karma: 34
I'm sure it should be "java" not "javaw" at the beginning. This is mine
java -Xmx4096m -Xms3072m -jar "E:\Games\Minecraft\Minecraft.exe"

Re: Adding Ram... 10 years, 11 months ago #34992

  • MrBombe7
  • OFFLINE
  • Senior Boarder
  • Posts: 44
  • Karma: 0
I watched 3 online Tut's and all had Javaw in their file, and that is right because if i just use java it gives me another error "Error occured during initalization of VM
too low initial heap"

and my task manager also says that minecraft is javaw and not java
Last Edit: 10 years, 11 months ago by MrBombe7.

Re: Adding Ram... 10 years, 11 months ago #34995

  • reacT
  • OFFLINE
  • Expert Boarder
  • Posts: 123
  • Karma: 22
  • Platform? (Windows,Linux,Mac)
  • if windows (64 or 32bit?)
  • Java Version (According to O/S)
  • Paste entire contents of your .bat file.

Join the League of Legends and Start playing!

Re: Adding Ram... 10 years, 11 months ago #34996

  • Chifilly
  • OFFLINE
  • Official TWK Admin
  • Yes?
  • Posts: 1046
  • Karma: 34
Well I know Minecraft uses javaw, but the command line for it is "java", and I think the reason it's doing that is because Java itself needs more RAM. No idea how this works in Windows 8, but but for Windows 7 you go to control panel, search Java, click the result, click "Java" tab, click "View..." and under the User tab double click "Runtime Parameters" and put "-Xmx8192m" or whatever RAM you want to assign to Java itself in there (and make sure it's more than you want to assign to Minecraft)

EDIT: I think the "javaw" command line only works when linking directly to a .jar file, but since you're trying to execute a .exe that itself runs a .jar file, "java" needs to be used. I could be wrong, but I've always used "java" in my bat file
Last Edit: 10 years, 11 months ago by Chifilly.

Re: Adding Ram... 10 years, 11 months ago #34998

  • MrBombe7
  • OFFLINE
  • Senior Boarder
  • Posts: 44
  • Karma: 0
The problem was a registry error >_>.....
After i was searching in the internet i found out how to fix it but still thx .
  • Page:
  • 1
Moderators: Chifilly, VooDoo, iMattR
Time to create page: 0.11 seconds