How do I get java 6 to be one of the options for opening .jar files after I select properties then open with?
52 Answers
I'd say that the reason for that is because you've installed the JDK, JRE. And in their original state, they wouldn't be an option to open .jar files. You can do any one of the following:
- Download an IDE which has Java support, Eclipse, Netbeans and their ilk. This in my opinion is the simplest way to handle it.
- Export the JDK's path to folder you wish to work in, using the export PATH command as follows:
export PATH=/path/to/dir:$PATH
For example, on my machine in the relevant folder i gave the following command: export PATH=$PATH: /usr/lib/jvm/java-7-openjdk-i386/bin
I think that this is because by default, the Java .desktop files have the line NoDisplay=true preventing them from being shown in menus. You could try to:
- Press Alt+F2 and type
gksu gedit - Type in your account password (for admin rights)
- In a seperate window, navigate to
/usr/share/applications/with a file manager - Find one that is called 'Java Runtime' or similar and click and drag it into 'gedit'
- Edit the line
NoDisplay=truetoNoDisplay=false
Then try 'Open with...' again
4