Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

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!

share|improve this answer
add comment

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

share|improve this answer
    
I don't think I fully understand. So I should enter into gedit: application/x-jar=java.desktop Type=Application Name=Java and what exactly should be in the Exec field? –  Xenoverse Mar 8 '13 at 10:28
    
exec=/usr/bin/java –  Anam Ahmed Mar 8 '13 at 16:52
    
Ok I did that and saved it as /usr/share/applications/java.desktop, now what? It doesn't appear to have done anything. –  Xenoverse Mar 8 '13 at 19:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.