I have run
sudo apt-get install openjdk-7-jre
It says
Reading package lists... Done
Building dependency tree
Reading state information... Done
openjdk-7-jre is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 229 not upgraded.
However, In my /usr/share/applications folder, there is no openjdk-7-jre.desktop.
The only file I have found on my computer related to openjdk is OpenJDK Java 7 Policy Tool. What have I done wrong?
I am using it to be able to run .jar files with a doubleclick. I can run them from terminal already, but there is no open with option for java
Best Answer
For some reason there is no desktop file for OpenJDK 7.
Install Java with this commands, in order to get the required entry:
and then
Or you could create a
desktop
file for OpenJDK7Create a new file in
~/.local/share/applications/
and add the lines below:
Replace the line
with the location of your java installation. You can check the installed JREs with:
Sample output