How to associate jnlp file with javaws
You will need to create a .desktop
file like described in the this post for javaws
to appear in Open With
dialog.
In your case you will need to create a new text file in the folder ~/.local/share/applications
. Name this file whatever you want, it has to have the extension .desktop
. The content of this file has to be the following:
[Desktop Entry]
Encoding=UTF-8
Name=Java 6 Web Start
Comment=Java 6 Web Start
Exec=/usr/lib/jvm/java-6-oracle/jre/bin/javaws %u
Terminal=false
Type=Application
Icon=javaws
Categories=Application;Network;
MimeType=application/x-java-jnlp-file;
Please pay attention that the path to javaws
executable in the Exec
parameter may be different on your system. You can find out the path to your javaws
executable by typing the following command in terminal:
which javaws
or by listing all your JDK/JRE installations with the command:
update-alternatives --display javaws