Out of memory? How to allocate more RAM to Java
Re: Out of memory? How to allocate more RAM to Java
the . is to set u in the active folder if u take it away the link are from the root... nothing? strange.. u are dubble clicking on the new file to start right?
Re: Out of memory? How to allocate more RAM to Java
sorry its "java -Xmx1024M -Xms512M -jar ./minecraft.jar"
- RevStoningpot
- Moron
- Posts: 2477
- Joined: Sat Aug 13, 2011 12:39 pm
- Location: first star to the right and straight on till morning
- Contact:
Re: Out of memory? How to allocate more RAM to Java
with the quotes by the way?
- RevStoningpot
- Moron
- Posts: 2477
- Joined: Sat Aug 13, 2011 12:39 pm
- Location: first star to the right and straight on till morning
- Contact:
Re: Out of memory? How to allocate more RAM to Java
still nothing. Do i have the worst type of linux or what cuz i can never seem to do anything everyone else can do
- Gnatogryz
- hated the previously assigned rank
- Posts: 606
- Joined: Tue Dec 27, 2011 4:36 pm
- Location: Poland
Re: Out of memory? How to allocate more RAM to Java
Code: Select all
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$JAVA_HOME/lib/amd64/:$JAVA_HOME/lib/i386/:$JAVA_HOME/jre/lib/amd64/:$JAVA_HOME/jre/lib/i386/" exec nice -n -4 java -Xmx1024M -Xms1024M -cp PATH_TO_MINECRAFT_LAUNCHER.jar net.minecraft.LauncherFrame $@
- RevStoningpot
- Moron
- Posts: 2477
- Joined: Sat Aug 13, 2011 12:39 pm
- Location: first star to the right and straight on till morning
- Contact:
Re: Out of memory? How to allocate more RAM to Java
nice: cannot set niceness: permission denied
Somthing like that it flashes real quick had to do it a lot to try and read it
Somthing like that it flashes real quick had to do it a lot to try and read it
- Gnatogryz
- hated the previously assigned rank
- Posts: 606
- Joined: Tue Dec 27, 2011 4:36 pm
- Location: Poland
Re: Out of memory? How to allocate more RAM to Java
Nice is a command that assigns process priority. But I guess Ubuntu is more strict about this command, so try it without nice:
Code: Select all
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$JAVA_HOME/lib/amd64/:$JAVA_HOME/lib/i386/:$JAVA_HOME/jre/lib/amd64/:$JAVA_HOME/jre/lib/i386/" exec java -Xmx1024M -Xms1024M -cp PATH_TO_MINECRAFT_LAUNCHER.jar net.minecraft.LauncherFrame $@
- RevStoningpot
- Moron
- Posts: 2477
- Joined: Sat Aug 13, 2011 12:39 pm
- Location: first star to the right and straight on till morning
- Contact:
Re: Out of memory? How to allocate more RAM to Java
this just closes the terminal without any message at all. Isn't there any way i can access the java options like the mac discription above? Ubuntu sure seems pretty impossible for doing anything. Does any one else use it? Do these ides work for other people? I just went out and bough some new ram going from 1G to 2G yet i'm stuck using 200M on minecraft. Not that it's ubuntu's fault i totaly put all the blame on mojang. I'd say blame java but it's mojang's dumbass' that decided to use java in the first place. I get the feeling this is hopeless
- RevStoningpot
- Moron
- Posts: 2477
- Joined: Sat Aug 13, 2011 12:39 pm
- Location: first star to the right and straight on till morning
- Contact:
Re: Out of memory? How to allocate more RAM to Java
Finally got it. As the problem before was that it couldn't find jar file i just put it directly in the home folder and tried from there. So here's the final process i used to get it to work.
1. Put minecraft launcher (minecraft.jar) in the home folder
2. Make a text file that reads:
of coarse stoningpot being your own user name
3. Set text file as executable in it's properties
4. Execute the text file. Does not need to be in same folder since i used the whole path
I just knew there had to be any easy fix to the can't find jar file problem
1. Put minecraft launcher (minecraft.jar) in the home folder
2. Make a text file that reads:
Code: Select all
java -Xmx1024M -Xms1024M -jar /home/stoningpot/minecraft.jar
3. Set text file as executable in it's properties
4. Execute the text file. Does not need to be in same folder since i used the whole path
I just knew there had to be any easy fix to the can't find jar file problem