How can I make "double click to run" the default behaviour of a jar-file on Nautilus? There is no "Open with OpenJDK Java 7 Runtime" on the "Open with" tab under Properties.
You can try the following:
If you have OpenJDK Java 7 Runtime installed in your system, then you should have a file named openjdk-7-java.desktop in the folder /usr/share/applications/
Check if you have the .desktop file.
Now the java files should be open with Open JDK 7 by default. To double-click and run, make sure the file has execute permissions.
You can set the permissions in the terminal with:
Finally double-click in the file to run it.
Hope this will helpful!
protected by Community♦ Apr 27 '13 at 17:26
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.