I had installed originally Oracle JDK 7 update 4, with update-alternatives installation instruction and the JDK became manual mode (3). OpenJDK 7 in auto mode (O).
When I will run/install .jar file Oracle Java Runtime doens't appear. How should I do to fix it?
thank you
If you want to bring
Oracle JDK
to that menu then you have to create a.desktop
file for Oracle JDK under/usr/share/applications
if it is not already there. What about clickingShow other application
button to see available application? If the Oracle JDK is not there then follow these steps:sudo gedit
to open gedit as super-user/usr/share/applications/OracleJDK.desktop
sudo chmod +x /usr/share/applications/OracleJDK.desktop
to make the.desktop
file executablesudo gedit /usr/share/applications/bamf.index
and add the lineOracleJDK.desktop path to Oracle's java here -jar
to the end and save./usr/share/applications/mimeinfo.cache
as super-user(sudo gedit
) and add change the lineapplication/java-archive=openjdk-xxx.desktop;
toapplication/java-archive=openjdk-xxx.desktop;OracleJDK.desktop;
i.e. just add your newly created desktop entry to mime-cache.Oracle JDK
entry under the applications menu if you click view other applicationsSamik's answer is great but remove the
NoDisplay
command which hides the app inComice OS 4
.i have searched the information about this case. Actually Oracle JRE runs automatically when jar files or jar files included are executed. It doesn't support interaction like this.
if jar files can't be executed, you seems not to be installed correctly.
Sorry if I'm wrong. That's all i found. If there's someone who know more, please add answer.
The above answer is not sufficient enough
you also need to update mime list as
open file in editor
then replace this
to
This will resolve the problem.