LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-30-2013, 09:58 PM   #16
cpocanada
LQ Newbie
 
Registered: Dec 2012
Posts: 16

Rep: Reputation: Disabled

After putting the following into terminal,
xdg-mime default .local/share/applications/update-sun-jre-java.desktop application/java-archive
Nothing has changed.

But that's okay, it's not a big deal, if I don't find a way to change the default to open with Java Runtime, no problem.

When I double-click the file or use xdg-open file-in-question.jar or right-click > open with java web start: java 7 in some form starts up and then reports "Unable to launch application". However when I right click on the .jar file, click open with > java runtime, then in opens fine.

I don't want to mark it as solved, because my original question isn't solved. Is it important to close this thread? I thought that since I have a common distro and that my questions could help others, I would ask for help. Thanks again for your patience!
 
Old 01-31-2013, 03:11 AM   #17
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by cpocanada View Post
I don't want to mark it as solved, because my original question isn't solved. Is it important to close this thread? I thought that since I have a common distro and that my questions could help others, I would ask for help. Thanks again for your patience!
Actually, you can't mark it as SOLVED because it's not your thread. But never mind, hopefully if we find a solution, then it will benefit the OP too.


When you go Properties > Open With... is there an option to "Browse for more" or "Browse for executable" or something similar? It may only appear when you click on "Show Other Applications". If so, then just find java and select it. If not, then could we maybe have a screenshot? I feel there must be a way of doing what you want to do...
 
Old 01-31-2013, 06:44 AM   #18
cpocanada
LQ Newbie
 
Registered: Dec 2012
Posts: 16

Rep: Reputation: Disabled
There is an option "show other applications" but can't browse, it only gives a list of more programs, and Java Runtime isn't on the list. Java WebStart will not open the .jar file and reports "Unable to launch application". Whereas [right-click on file > open with Java Runtime] runs .jar file perfectly.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2013-01-31 05:39:13.png
Views:	15
Size:	100.3 KB
ID:	11741   Click image for larger version

Name:	Screenshot from 2013-01-31 05:31:01.png
Views:	16
Size:	14.5 KB
ID:	11742   Click image for larger version

Name:	Screenshot from 2013-01-31 05:30:35.png
Views:	17
Size:	45.9 KB
ID:	11743  
 
Old 01-31-2013, 06:45 AM   #19
cpocanada
LQ Newbie
 
Registered: Dec 2012
Posts: 16

Rep: Reputation: Disabled
another screenshot. reached my maximum of 3 on last post.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2013-01-31 05:30:07.png
Views:	17
Size:	30.5 KB
ID:	11744  
 
Old 01-31-2013, 06:52 AM   #20
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Hm... And that "Add" button is greyed out no matter where/what you click? Perhaps we need to find someone who actually runs Mint, or maybe I can boot it in a VM...
 
Old 01-31-2013, 07:08 AM   #21
cpocanada
LQ Newbie
 
Registered: Dec 2012
Posts: 16

Rep: Reputation: Disabled
The add button only becomes available after selecting another one in the list other than the current default. No option to browse for program.
 
Old 01-31-2013, 07:31 AM   #22
cpocanada
LQ Newbie
 
Registered: Dec 2012
Posts: 16

Rep: Reputation: Disabled
This is not urgent or really important. Why don't we just wait and see if somebody that's running Mint sees this thread? If not, no big deal...
 
Old 01-31-2013, 07:50 AM   #23
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: LinuxMint
Posts: 775

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by cpocanada View Post
This is not urgent or really important. Why don't we just wait and see if somebody that's running Mint sees this thread? If not, no big deal...
The thread's title indicates Ubuntu 12.04 so it may not grab a Mint user's attention. Have you tried posting this in the Mint forums?
 
Old 02-03-2013, 04:23 PM   #24
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Okay, we got the problem sorted at least in cpocanada's case: the problem was that the correct mimetype is "application/x-java-archive" (I mistakenly said "application/java-archive"). So the fix was to use the following line in .local/share/applications/mimeapps.list:

Quote:
application/x-java-archive=openjdk-7-java.desktop
@0wn3r: If this also fixes your problem, then please mark this thread as SOLVED using the link at the top of the page.

Regards,
 
1 members found this post helpful.
  


Reply


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
How to write a daemon Linux service to a Java application which execute a .jar haseit Linux - Newbie 2 10-14-2011 03:10 AM
Gentoo doesn't run a Java (Flash) application but on Ubuntu yes! fbcyborg Gentoo 2 05-05-2010 05:23 AM
KDE jar MIME is application/zip and not application/java-archive in Ubuntu Intrepid? arobinson74 Linux - Software 2 09-18-2009 11:40 AM
How to run JAR from within Java program ?! EAD Programming 1 12-31-2006 07:11 PM
how do i execute a jar (java application) in linux amolgupta Linux - Software 2 07-20-2006 05:55 AM


All times are GMT -5. The time now is 06:27 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration