I recently installed mint 13 dual boot with win 7. The game's jar is downloaded, and I tried to install sun java, but look at the terminal output...
scarasyte@scarasyte-FQ565AA-ABA-a6700f ~ $ sudo apt-get install sun-java6-jre
[sudo] password for scarasyte:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sun-java6-jre' has no installation candidate
scarasyte@scarasyte-FQ565AA-ABA-a6700f ~ $ sudo apt-get install sun-java6-jdk
[sudo] password for scarasyte:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sun-java6-jdk' has no installation candidate
Sooo.... What do I do?... Are future linux users gonna have to close shop on minecraft?
I recently installed mint 13 dual boot with win 7. The game's jar is downloaded, and I tried to install sun java, but look at the terminal output...
scarasyte@scarasyte-FQ565AA-ABA-a6700f ~ $ sudo apt-get install sun-java6-jre
[sudo] password for scarasyte:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jre is not available, but is referred to by another package.
I think you should install OpenJDK instead.
sudo apt-get install openjdk-6-jre
I'm using OpenJDK and it works fine. Are you sure you're using the launcher jar? Please post your command line and any output.
What do you mean by "launcher jar"? I double clicked minecraft.jar to find it would not run because it's not a executable, and then I tried typing into the terminal "java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame", only to get this.
scarasyte@scarasyte-FQ565AA-ABA-a6700f ~ $ java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame
Exception in thread "main" java.lang.NoClassDefFoundError: net/minecraft/LauncherFrame
Caused by: java.lang.ClassNotFoundException: net.minecraft.LauncherFrame
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: net.minecraft.LauncherFrame. Program will exit.
After doing some googling, just about every result suggests uninstalling openjava and getting sun-java6, which is nowhere to be found. Even the minecraft download page says to get sun java. Of course I haven't uninstalled it though. I'd rather not get rid of something until I know of a replacement.
What do you mean by "launcher jar"? I double clicked minecraft.jar to find it would not run because it's not a executable, and then I tried typing into the terminal "java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame", only to get this.
scarasyte@scarasyte-FQ565AA-ABA-a6700f ~ $ java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame
Exception in thread "main" java.lang.NoClassDefFoundError: net/minecraft/LauncherFrame
Caused by: java.lang.ClassNotFoundException: net.minecraft.LauncherFrame
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: net.minecraft.LauncherFrame. Program will exit.
After doing some googling, just about every result suggests uninstalling openjava and getting sun-java6, which is nowhere to be found. Even the minecraft download page says to get sun java. Of course I haven't uninstalled it though. I'd rather not get rid of something until I know of a replacement.
Did you save Minecraft.jar in the directory where you ran the command, and is it capitalized correctly?
Also, the page says it is executable.
What do you mean by "launcher jar"? I double clicked minecraft.jar to find it would not run because it's not a executable, and then I tried typing into the terminal "java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame", only to get this...
Unlike Windows, Linux is case sensitive, and since minecraft.jar is lower case (unless you changed it) that command line from minecraft.net is incorrect and should be:
That should work fine with openjdk-6-jre, assuming that you do that from the directory containing the downloaded minecraft.jar. If you occasionally get stuck movement keys, that is due to lwjgl 2.4.2 included with minecraft (I am using lwjgl 2.6).
Note that if mkdir "mkdir bin" in your home directory (if that does not already exist), logout of X, and log back in, that bin should end up in your $PATH. Then in your "bin" you can create a "minecraft" script like the following with gedit (or nano in shell) and make it executable with "chmod u+x minecraft":
#!/bin/sh
# Change cd line to your path to orig minecraft.jar, NOT ~/.minecraft/bin
cd ~/MC-client
java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
Then if you did everything right, all you have to do to run it is type: minecraft
I have been running minecraft in 64-bit Ubuntu 11.10 (which Mint is based on) since 1.8 beta before 1.0 was released, and currently alternate between 1.2.5 and recent snapshots of next version by renaming a copy of the entire .minecraft directory (one which has the snapshot minecraft.jar).
scarasyte@scarasyte-FQ565AA-ABA-a6700f ~ $ sudo apt-get install sun-java6-jre
[sudo] password for scarasyte:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sun-java6-jre' has no installation candidate
scarasyte@scarasyte-FQ565AA-ABA-a6700f ~ $ sudo apt-get install sun-java6-jdk
[sudo] password for scarasyte:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sun-java6-jdk' has no installation candidate
Sooo.... What do I do?... Are future linux users gonna have to close shop on minecraft?
No amount of google searching has helped me thus far, but if this is in any way related, then someone has got to emulate java better then openjava does... http://blog.sudobits.com/2012/01/18/sunjdk-will-be-removed-from-ubuntu-partner-archive/
I think you should install OpenJDK instead.
sudo apt-get install openjdk-6-jre
That came with mint, and it doesn't work. It always tells me that the jar is not executable.
I'm using OpenJDK and it works fine. Are you sure you're using the launcher jar? Please post your command line and any output.
What do you mean by "launcher jar"? I double clicked minecraft.jar to find it would not run because it's not a executable, and then I tried typing into the terminal "java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame", only to get this.
scarasyte@scarasyte-FQ565AA-ABA-a6700f ~ $ java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame
Exception in thread "main" java.lang.NoClassDefFoundError: net/minecraft/LauncherFrame
Caused by: java.lang.ClassNotFoundException: net.minecraft.LauncherFrame
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: net.minecraft.LauncherFrame. Program will exit.
After doing some googling, just about every result suggests uninstalling openjava and getting sun-java6, which is nowhere to be found. Even the minecraft download page says to get sun java. Of course I haven't uninstalled it though. I'd rather not get rid of something until I know of a replacement.
Did you save Minecraft.jar in the directory where you ran the command, and is it capitalized correctly?
Also, the page says it is executable.
.
Unlike Windows, Linux is case sensitive, and since minecraft.jar is lower case (unless you changed it) that command line from minecraft.net is incorrect and should be:
java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
That should work fine with openjdk-6-jre, assuming that you do that from the directory containing the downloaded minecraft.jar. If you occasionally get stuck movement keys, that is due to lwjgl 2.4.2 included with minecraft (I am using lwjgl 2.6).
Note that if mkdir "mkdir bin" in your home directory (if that does not already exist), logout of X, and log back in, that bin should end up in your $PATH. Then in your "bin" you can create a "minecraft" script like the following with gedit (or nano in shell) and make it executable with "chmod u+x minecraft":
Then if you did everything right, all you have to do to run it is type: minecraft
I have been running minecraft in 64-bit Ubuntu 11.10 (which Mint is based on) since 1.8 beta before 1.0 was released, and currently alternate between 1.2.5 and recent snapshots of next version by renaming a copy of the entire .minecraft directory (one which has the snapshot minecraft.jar).