/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java: No such file or directory
Well, according to the bug report, there is some problem with the /usr/bin/javaws file. Type this command head /usr/bin/javaws, following output should be seen:
#!/bin/bash JAVA=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java LAUNCHER_BOOTCLASSPATH="-Xbootclasspath/a:/usr/share/icedtea-web/netx.jar" LAUNCHER_FLAGS=-Xms8m CLASSNAME=net.sourceforge.jnlp.runtime.Boot BINARY_LOCATION=/usr/bin/javaws PROGRAM_NAME=javaws CP=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar
At line 3 and line 9, notice that the path was pointing to java-7-openjdk-amd64, when I dive into that path, I can see the java file was missing and the content of the directory wasn't as complete as in java-6-openjdk-amd64. So they suggest to change it to use java-6-openjdk-amd64 with following steps:
- Press Alt+F2
- enter the following (without paranthesis): "gksudo gedit /usr/bin/javaws"
- enter your password
- Change the "7" in the first line to a "6"
- Save and quit
It is not yet a perfect solution, this workaround will break whenever there is an update on the package. The correct workaround should be this way:
- sudo update-alternatives --config javaws
and then choose the number in front of /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws.
- Press Alt+F2
- enter the following (without paranthesis): "gksudo gedit /usr/bin/javaws"
- enter your password
- Change the "7" in the first line to a "6"
- Save and quit
It is not yet a perfect solution, this workaround will break whenever there is an update on the package. The correct workaround should be this way:
- sudo update-alternatives --config javaws
and then choose the number in front of /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws.
2 comments:
God Bless you.
~@imbenzene
Thank you so much dude!!!
Post a Comment