LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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



Reply
 
Search this Thread
Old 07-16-2012, 06:04 PM   #1
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Linux Mint 16, Kubuntu 14.04, Uberstudent 3.0
Posts: 86

Rep: Reputation: Disabled
setting default app for .jar files


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
 
Old 07-20-2012, 02:24 PM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,169

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
in gnome you can right click on file, select properties and there is a tab "open with". but I do not know what kind of GUI you use.
 
Old 07-20-2012, 03:06 PM   #3
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Linux Mint 16, Kubuntu 14.04, Uberstudent 3.0
Posts: 86

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-23-2012, 01:53 PM   #4
austintx
LQ Newbie
 
Registered: Jul 2012
Location: Austin, Texas
Distribution: Linux Mint 17 Cinnamon
Posts: 28

Rep: Reputation: 4
If OpenJDK is not on your applications menu, add it to your applications menu
 
Old 07-23-2012, 02:50 PM   #5
austintx
LQ Newbie
 
Registered: Jul 2012
Location: Austin, Texas
Distribution: Linux Mint 17 Cinnamon
Posts: 28

Rep: Reputation: 4
I think this should work:

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.
 
  


Reply

Tags
lxde, menuedit


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting app icons used in taskbar or dock? Many are blank or default fitzhugh Linux - Desktop 0 03-16-2010 05:48 PM
Can't run a Jar File or App browser Linux - Newbie 2 05-21-2008 02:19 PM
change default app for certain files (Mac OS X) beezum88 Other *NIX 1 11-23-2006 11:35 PM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 06:26 AM
Setting default for video files ch4s3r Linux - Software 1 03-08-2004 01:27 PM


All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration