I'm trying to create a launcher for Minecraft, but in order to make a proper working launcher I need to have OpenJDK Java 7 set as the default application for opening the .jar file. Here's the problem: when I look at the Open With tab of its Properties window, there's no way to select OpenJDK. What do?
Asked
Active
Viewed 1,960 times
2 Answers
2
I think this might be a better explanation, if you haven't already found it yourself.
Open a terminal window and type:
cd /usr/share/applications
Now follow the Step #4 of this answer onward!

GorillaDaHun
- 21
1
All the file associations are stored in the file :
/usr/share/applications/defaults.list
create a java.desktop
for java in /usr/share/applications/
see here for instructions : link
change the line at the beginning of the file
application/x-jar=java.desktop

Anam Ahmed
- 660
application/x-jar=java.desktop
Type=Application
Name=Java
and what exactly should be in the Exec field? – Xenoverse Mar 08 '13 at 10:28/usr/share/applications/java.desktop
, now what? It doesn't appear to have done anything. – Xenoverse Mar 08 '13 at 19:14