Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2600  / 1 Year ago, thu, april 13, 2023, 11:15:13

I want to open a .jar file, but "open jdk 7" is not in other applications list. How can I add "open jdk 7" to "other applications" list and then set it as default opener?



I have no such problem in ubuntu 12.04 but in 13.04 I can not set "open jdk 7" as default. I have to right click on .jar file and select open with "open jdk7" every time that is annoying.


More From » java

 Answers
7

Here's the answer: How do I reenable opening jar files by double clicking on them?



Check that answer.
In short, you have to edit the file /usr/share/applications/defaults.list as root (sudo gedit /usr/share/applications/defaults.list, for example),
search for the two lines that start with application/x-jar and application/x-java-archive and change the .desktop values of those lines to openjdk-7-java.desktop, if you have openjdk-7 installed.


[#30294] Thursday, April 13, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
iriousutur

Total Points: 321
Total Questions: 112
Total Answers: 106

Location: Sweden
Member since Mon, Dec 7, 2020
3 Years ago
;