Why isn't java one of my "open with" options when I am trying to open a .jar file and I already successfully downloaded java?

How do I get java 6 to be one of the options for opening .jar files after I select properties then open with?

5

2 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:

  1. Download an IDE which has Java support, Eclipse, Netbeans and their ilk. This in my opinion is the simplest way to handle it.
  2. 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

7

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:

  1. Press Alt+F2 and type gksu gedit
  2. Type in your account password (for admin rights)
  3. In a seperate window, navigate to /usr/share/applications/ with a file manager
  4. Find one that is called 'Java Runtime' or similar and click and drag it into 'gedit'
  5. Edit the line NoDisplay=true to NoDisplay=false

Then try 'Open with...' again

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like