So I just installed Ubuntu today, and I'm loving it. I installed Java 7 from the software center, rebooted, and tried to set minecraft.jar to execute with OpenJDK. I can get it to start with OpenJDK if I right click and go to "Open with...", but after I login and it downloads files it goes straight to a black screen. I also cannot get it to automatically execute in OpenJDK, only "Java Web Start" which does nothing. Any help is appreciated!
Thanks, I got it working, but I still can't just double-click to open it. I can right-click and select "Open With" then "OpenJDK Java 7 Runtime", but I can't select that option in "Properties" > "Open With".
Do I have to type all that in every time I want to play the game? I put that in terminal and it just opened the game in OpenJDK.
well good to hear it works for you =) i use an ubuntu server no GUI so i have to type it in everytime. i would say use a batch file but seeing as its linux you need a shell to execute that everytime. so youd make a file quite like you make a batch file with that code in it. name it
whatever.sh
then do
chmod +X filename.sh
also i think since you have a desktop you can right click it and properties set it to make it execute as program as well be careful with SUDOing shells makes sure your know what they do and what they are in the future considering this is minecraft that cool but yea. anything else make sure you know what youre doing SUDO in general can be dangerous. if u can execute it without sudo then go for that. green arrow if i helped =)
add
sudo java -Xmx1g -Xms1G -jar <location> nogui
it shold take care of not running your terminal in the back
well good to hear it works for you =) i use an ubuntu server no GUI so i have to type it in everytime. i would say use a batch file but seeing as its linux you need a shell to execute that everytime. so youd make a file quite like you make a batch file with that code in it. name it
whatever.sh
then do
chmod +X filename.sh
also i think since you have a desktop you can right click it and properties set it to make it execute as program as well be careful with SUDOing shells makes sure your know what they do and what they are in the future considering this is minecraft that cool but yea. anything else make sure you know what youre doing SUDO in general can be dangerous. if u can execute it without sudo then go for that. green arrow if i helped =)
add
sudo java -Xmx1g -Xms1G -jar <location> nogui
it shold take care of not running your terminal in the back
So I made minecraft.sh on my desktop, then put in the "sudo java..." command, and ran the chmod command in terminal, and now it gives me 4 options, none of which open the game.
<location> should include the filename, right? And is it supposed to have the <> when I put it in?
So I made minecraft.sh on my desktop, then put in the "sudo java..." command, and ran the chmod command in terminal, and now it gives me 4 options, none of which open the game.
<location> should include the filename, right? And is it supposed to have the <> when I put it in?
no dont put in the <> it should look something like
sudo java -Xmx2G -Xms2G -jar /home/blahblah minecraft.exe
or wherever you put it. and as i said im not to positive on how to execute shel from a desktop. i run from only terminal. there is documentation on how to do it properly. and make sure you right clicked it and set it to execute or did the command i said above to change the permission. if its not too much to run it from terminal everytime then just do that . make a shortcut to it or something and type it in
green arrow if i helped =)
I'm just saying let's remove all the warning labels and let the problem sort itself out.
Thanks, I got it working, but I still can't just double-click to open it. I can right-click and select "Open With" then "OpenJDK Java 7 Runtime", but I can't select that option in "Properties" > "Open With".
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.
Do I have to type all that in every time I want to play the game? I put that in terminal and it just opened the game in OpenJDK.
well good to hear it works for you =) i use an ubuntu server no GUI so i have to type it in everytime. i would say use a batch file but seeing as its linux you need a shell to execute that everytime. so youd make a file quite like you make a batch file with that code in it. name it
whatever.sh
then do
also i think since you have a desktop you can right click it and properties set it to make it execute as program as well be careful with SUDOing shells makes sure your know what they do and what they are in the future considering this is minecraft that cool but yea. anything else make sure you know what youre doing SUDO in general can be dangerous. if u can execute it without sudo then go for that. green arrow if i helped =)
add
it shold take care of not running your terminal in the back
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.
So I made minecraft.sh on my desktop, then put in the "sudo java..." command, and ran the chmod command in terminal, and now it gives me 4 options, none of which open the game.
<location> should include the filename, right? And is it supposed to have the <> when I put it in?
no dont put in the <> it should look something like
sudo java -Xmx2G -Xms2G -jar /home/blahblah minecraft.exe
or wherever you put it. and as i said im not to positive on how to execute shel from a desktop. i run from only terminal. there is documentation on how to do it properly. and make sure you right clicked it and set it to execute or did the command i said above to change the permission. if its not too much to run it from terminal everytime then just do that . make a shortcut to it or something and type it in
green arrow if i helped =)
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.