I've been having trouble since I purged my sun-java packages due to that whole deal, and since then my .jar files haven't been properly associated in nautilus. It has the option to open them in the sun-jvm, since I re-installed the package following this problem, but it won't actually run them. Right clicking and changing it to use the custom command java -jar doesn't work, since I can't seem to add custom commands to the new nautilus in gnome-shell. I've tried reassociating the file with binfmts, and sent
Code: Select all
sudo update-binfmts --install JAR /usr/bin/jexec --extension jar
Code: Select all
package openjdk-6
interpreter /usr/bin/jexec
magic PK\x03\x04
Code: Select all
~/Downloads$ sudo update-alternatives --config java
There are 4 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 auto mode
1 /opt/java/64/jre1.6.0_30/bin/java 1 manual mode
2 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode
* 3 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
4 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1051 manual mode
Press enter to keep the current choice[*], or type selection number:
~/Downloads$ sudo update-alternatives --config javac
There are 2 choices for the alternative javac (providing /usr/bin/javac).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-7-openjdk-amd64/bin/javac 1051 auto mode
* 1 /usr/lib/jvm/java-6-sun/bin/javac 63 manual mode
2 /usr/lib/jvm/java-7-openjdk-amd64/bin/javac 1051 manual mode
Press enter to keep the current choice[*], or type selection number:
~/Downloads$ sudo update-alternatives --config javaws
There are 2 choices for the alternative javaws (providing /usr/bin/javaws).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws 1061 manual mode
* 2 /usr/lib/jvm/java-6-sun/jre/bin/javaws 63 manual mode
Press enter to keep the current choice[*], or type selection number:
It isn't a game-breaking deal, since I can still java -jar derp.jar in terminal, but it's somewhat annoying to do every time I need to run something in jvm. Any thoughts?