How do I open .jar files without using terminal in manually installed java? . I tried open with dialog but java is not there .so How do I manually create it?
Edit
I want some thing like this

|
|
|
Install Ubuntu Tweak. Go to the 'admins' section, open the File Type Manager, Select 'All' file types, find and select Java Archives in the long list, choose edit, choose the Add button, click on the 'custom command' twisty at the bottom and type the custom command you need it to use to open the file the way you desire. Here's a picture I did for another question
|
||||
|
|
|
What are you trying to do? To open JAR as archive or to launch the application packed in JAR? Personally, I used to have a problem because Dolphin (KDE's default file manager) launched archiver on every JAR file, and the archiver opened JAR as a usual ZIP. You can use a script like this and set it as default application for all .jar files. It will select what to do — to open archive or to launch Java application — depending on file's extension:
|
|||
|
|
|
First you need to create a .desktop file referencing your manually installed java. So, create a .desktop file at
After this you should have a new entry in the options "Other applications" separator (in this screenshot it already appears in "Recommended applications" because i already used it to open a .jar):
If the entry does not appear try executing |
|||
|
|
|
right-click on it, go to "permissions" tab and check "allow executing file as program" |
|||
|
|