Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
My primary concern here is setting the default application for handling .jar files to OpenJDK.
I use Linux Mint Debian Edition with LXDE.
When I tried to open a .jar file, it was linked to Eclipse (Java IDE) as the default application. I want to change that to OpenJDK, but it's nowhere to be found in the menus. It's definitely installed though, I checked in Synaptic (and otherwise the .jar file wouldn't be able to run in eclipse either, right?).
How can I make OpenJDK available in the menu?
Since the standard way of doing this is unavailable, is there a CL tool for assigning default applications to file extensions? What command would I have to use for this specific binding (bcs I'm not very good at making the glyphs in your standard man page into a functioning command, I always get it wrong...)?
Thanks, Ben
As stated in my avatar and first post, my desktop is LXDE.
In LXDE, you do it the same way: right click, "open with" and you get to chose the application to open it with, and the option to make that the default for this file type by checking the box.
That choice, however, is limited to applications listed in the applications menu. in my case, OpenJDK is NOT LISTED THERE, so I don't get to choose it.
there is also the option to provide a command with path to the executable, which I tried, but didn't work.
Hence my question about a CL tool and possible command to use it with.
Look in your /usr/share/applications
You should find a couple of OpenJDK *.desktop files
Copy those into your ~/.local/share/applications folder
(You may have to change ownership and permissions)
That should make OpenJDK magically appear on your applications list.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.