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.

Please note that I am not spamming and I went through this : How do I reenable opening jar files by double clocking on them?

But I don't have openjdk but Oracle jdk (1.7.0_25) installed so it's obvious that the second command in the first point won't work.

And I am just a newbie so am not in a state to manipulate the code to make it run for oracle java too. Please guide me enabling right click ->open with other app-> java (or whatever the complete name is).

share|improve this question
The instructions are the same, just look for the Oracle Java .desktop file in /usr/share/applications instead of Openjdk. –  Uri Herrera Jul 19 '13 at 21:18
@Uri-Herrera I searched for "oracle-java.desktop" i.e. ls -l oracle-java.desktop but I think it's got some other name as it's saying "No such file or directory". Could you tell me what's the correct name? –  Tarun Jul 21 '13 at 18:22
The name they're given starts with Oracle however the name of the .desktop files doesn't start with oracle but with 'JB', 'JB-controlpanel.desktop' or 'JB-policytool.desktop'. –  Uri Herrera Jul 21 '13 at 18:28
@Uri-Herrera Still nothing. In fact, there's no file with the name starting with letter 'j' (when I browsed it manually). –  Tarun Jul 21 '13 at 18:37
Hmm, how did you installed Java? might that because I installed it from a 3rd party PPA that I have these files though I doubt that has something to do with it. –  Uri Herrera Jul 21 '13 at 18:49
show 1 more comment

Your Answer


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

Browse other questions tagged or ask your own question.