PDA

View Full Version : [ubuntu] How to run jar executable file with mouse click?



ravi_joshi
November 20th, 2011, 07:55 PM
Hi,
Unlike in windows, user can run jar executable file just by mouse click. We don't need to run it through terminal (java -jar myjarfile.jar).
How to set my Ubuntu to run directly from mouse click?

Please help.

Thank you.

Morbius1
November 20th, 2011, 08:06 PM
Open Nautilus with root privileges to the following location:

gksu nautilus /usr/share/applicationsRight click on "wine"
Change the "Command" from this:

cautious-launcher %f wine start /unixTo this:

wine start /unixClose it and double click away.

Morbius1
November 20th, 2011, 09:03 PM
My sincerest apologies. That was a totally incoherent answer. It's been a rough week. The process was correct but the file was not:

Right click on whatever java runtime launcher you have in /usr/share/application and remove "cautious-launcher %f"