when i try to run minecraft in linux I get the following errors when starting:
java -jar minecraft.jar
java.io.IOException: Cannot run program "javaw": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at net.minecraft.MinecraftLauncher.main(MinecraftLauncher.java:31)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 1 more
//I get the above when starting minecraft, i get the rest following login and then trying to load the world which crashes.
27 achievements
174 recipes
Setting user: Touriaus, -7747827399689536552
Loading: net.java.games.input.LinuxEnvironmentPlugin
INSTANCE.absAxesIDs is only 63 long, so 63 not contained
INSTANCE.absAxesIDs is only 63 long, so 63 not contained
Linux plugin claims to have found 8 controllers
Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb7861416, pid=3820, tid=2387766128
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Server VM (20.1-b02 mixed mode linux-x86 )
# Problematic frame:
# C [+0x416] __kernel_vsyscall+0x2
#
# An error report file with more information is saved as:
# /home/****/Documents/hs_err_pid3820.log
[thread -1941472400 also had an error]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted
So I'm unsure of why it's such a hindrance on linux. I installed Java6 via the termincal sudo apt-get sun-java6-jre. I tried a manual install by downloading the binfile from java's site and followed the directions, only I feel like I got half the directions and it merely extracted it and didn't install.
"javaw" is, as the name insist(the "w"), is for windows. it does not work, nor exist, in linux. did you download the right version of minecraft? and java?
"javaw" is, as the name insist(the "w"), is for windows. it does not work, nor exist, in linux. did you download the right version of minecraft? and java?
Yes that is what is so confusing to me. I triple checked to make sure I got the right ones and I do. I got java from the repository via the terminal and minecraft from minecraft.net and got the linux version.
Yes that is what is so confusing to me. I triple checked to make sure I got the right ones and I do. I got java from the repository via the terminal and minecraft from minecraft.net and got the linux version.
One thing you could do as a potential temporary fix is:
alias javaw=java
Then, in the same terminal,
. java -jar minecraft.jar
Exactly like that, including the period at the beginning of the command. I don't think sourcing (what I'm doing with the period there) works with anything other than shell scripts, but it's always worth a try.
Nothing seems to happen when i do alias javaw=java and i get:
But I don't have javaw, because it's for windows. so it's true that there is no javaw directory, i just don't understand why it needs one.
Edit: Try the bolded solution below, first.
I know, but that's what the ln command will do. It'll basically make a symlink from javaw to java, so that any program that tried to run javaw will just run the java command instead.
Having Googled around, I found this. If you're running Ubuntu, you might want to have a look around for somewhere you can set Sun's Java as the default, as said here:
If your system has more than one version of Java, configure which one your system uses be entering the following command in a terminal window
But I don't have javaw, because it's for windows. so it's true that there is no javaw directory, i just don't understand why it needs one.
It doesn't. I just ran minecraft on my Fedora box (never did that before). I don't have javaw, it doesn't print any errors and just works.
If LordPie is correct, (and I think he is), then the problem is the Launcher code is confused about the platform due to some difference in the JVMs. It may be using a heuristic that only works on the Sun JVM, there may be a better way, but they aren't using it if there is.
It doesn't. I just ran minecraft on my Fedora box (never did that before). I don't have javaw, it doesn't print any errors and just works.
Yeah, from what I'm seeing, it's an Ubuntu-specific problem with Sun's JRE not being set as the default, or something like that. This is why I don't like distros that handle EVERYTHING for you. :tongue.gif:
In that case, the only thing I can suggest is trying the symlink method. I'm not sure how it could interfere with some of Ubuntu's package management, but it's all I can think of. This thread has the exact same problem, but the only solution in there doesn't seem to have worked for you.
Hopefully someone who's more familiar with Ubuntu will stroll along with an idea.
java -jar minecraft.jar
java.io.IOException: Cannot run program "javaw": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at net.minecraft.MinecraftLauncher.main(MinecraftLauncher.java:31)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 1 more
//I get the above when starting minecraft, i get the rest following login and then trying to load the world which crashes.
27 achievements
174 recipes
Setting user: Touriaus, -7747827399689536552
Loading: net.java.games.input.LinuxEnvironmentPlugin
INSTANCE.absAxesIDs is only 63 long, so 63 not contained
INSTANCE.absAxesIDs is only 63 long, so 63 not contained
Linux plugin claims to have found 8 controllers
Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb7861416, pid=3820, tid=2387766128
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Server VM (20.1-b02 mixed mode linux-x86 )
# Problematic frame:
# C [+0x416] __kernel_vsyscall+0x2
#
# An error report file with more information is saved as:
# /home/****/Documents/hs_err_pid3820.log
[thread -1941472400 also had an error]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted
Any ideas?
I have installed sun-java6-jre through the terminal. Everything seemed to install fine.
Apparently however javaw is a windows thing.
Yes that is what is so confusing to me. I triple checked to make sure I got the right ones and I do. I got java from the repository via the terminal and minecraft from minecraft.net and got the linux version.
Try the bolded fix in this post first!
First, find out where the java binary is:
If you don't have which for whatever reason, do
Then note down what the command outputs:
In my case, it's /opt/java/bin/java, so I would do:
Which will make a nice little symlink from javaw to java, so you should at least be able to play Minecraft.
Nothing seems to happen when i do alias javaw=java and i get: when i type . java -jar minecraft.jar
Try the bolded fix in this post, first.
Pasted it here and spoiler'd it, just because I can.
First, find out where the java binary is:
If you don't have which for whatever reason, do
Then note down what the command outputs:
In my case, it's /opt/java/bin/java, so I would do:
Which will make a nice little symlink from javaw to java, so you should at least be able to play Minecraft.
Edit: Try the bolded solution below, first.
I know, but that's what the ln command will do. It'll basically make a symlink from javaw to java, so that any program that tried to run javaw will just run the java command instead.
Having Googled around, I found this. If you're running Ubuntu, you might want to have a look around for somewhere you can set Sun's Java as the default, as said here:
Try that, first.
It doesn't. I just ran minecraft on my Fedora box (never did that before). I don't have javaw, it doesn't print any errors and just works.
If LordPie is correct, (and I think he is), then the problem is the Launcher code is confused about the platform due to some difference in the JVMs. It may be using a heuristic that only works on the Sun JVM, there may be a better way, but they aren't using it if there is.
Yeah, from what I'm seeing, it's an Ubuntu-specific problem with Sun's JRE not being set as the default, or something like that. This is why I don't like distros that handle EVERYTHING for you. :tongue.gif:
In that case, the only thing I can suggest is trying the symlink method. I'm not sure how it could interfere with some of Ubuntu's package management, but it's all I can think of. This thread has the exact same problem, but the only solution in there doesn't seem to have worked for you.
Hopefully someone who's more familiar with Ubuntu will stroll along with an idea.
I think you made a bit of a typo. It should be: