LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial 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 01-06-2007, 11:21 AM   #1
xiaodown
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Redhat, Centos, Fedora
Posts: 37

Rep: Reputation: 15
HOW TO GET .jnlp Java apps to run from Firefox in Gnome


Following my creedo of "Every time I spend 45 minutes screwing with something and then finally figure it out", I want to put my solution here so that it'll be here for other people (and me, when I forget) later to find via search.


PROBLEM:

Java apps using the JNLP (java network launcher protocol, or whatever) don't work.

You click on "run app" on a webpage, and it pops up a "What do I open this with?!?". The default answer is either "firefox" or "mozilla", but when you click OK, it just goes ahead and pops up another browser, and then says "What do I open this with?!?" ad infinitum.

You *KNOW* you've got java installed. Hell, you installed JRE, JDK, and then just to be on the safe side, the entire billion-megabyte J2EE suite.

You've symlinked the libjavaplugin.so thingie from BOTH your firefox install's plugins directory AND your ~/{.mozilla|.firefox}/plugins/ directory.

You've tried telling firefox to start the application with the JRE/bin/java app.

You've tried to change the mime type thingie for application/java-jnlp-network-launcher or whatever, but you can't for the life of you figure out how to edit the "download" actions. Downloading some obscure FF extention from romania doesn't solve it, either.

Still doesn't work. You're about to commit sepuku.


SOLUTION:

Next time you come across a .jnlp, click "Save to disk" and save it to desktop or ~ or whatever.

Open a gnome finder window thingie, right click the jnlp file, and select whatever the equivilant of "Open With..." is. Navigate to your javaws application. This is going to be under your JRE folder, which could be any number of places. It could be anywhere from /usr/java/jdk/jre/bin/javaws or /opt/SUNWappserver/jdk/jre/bin/javaws or anywhere. When in doubt, and desperate, try which javaws. If it returns a Sun java, cool, use that one. If it returns nothing or one of the silly GNU java-alternatives in /etc/alternatives/blah (track down the symlinks), then do a cd / ; find | grep javaws or whatever your pefered method of thrashing your hard drive for 5 minutes is.

You should be good. Gnome now knows what application to use to open the thing, so when firefox doesn't know, it'll ask gnome, and gnome will know. You can even click "do this from now on" if you're confident the next time firefox asks.


~Xiao.
 
Old 01-06-2007, 05:52 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,791
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
You don't need to save the .jnlp, you just need to select "Other Application" when that dialog box pops up, then navigate to javaws, and click on OK. There is also a checkbox that lets you permanently set this. Sticking within Firefox makes this less dependent on Gnome.
 
Old 04-05-2011, 10:07 PM   #3
mag0o
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
Thanks xiaodown, this helped me get the Blocks Editor working for the android appinventor!
 
Old 04-06-2011, 01:24 AM   #4
xiaodown
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Redhat, Centos, Fedora
Posts: 37

Original Poster
Rep: Reputation: 15
Heh, that's funny! I had (of course, 4 years later) forgotten that I'd written this post. In fact, when I wrote it, Android (much less chrome) didn't exist.

I'm glad it helped.
 
  


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
I can't run Java on Firefox 2.0 tnandy Linux - Newbie 5 01-06-2007 12:57 PM
Firefox refuses to load Java jnlp files - plugin and java ok Melsync Linux - Software 1 06-25-2006 05:09 PM
Can't run java apps using gtk2.8 and glade2.13 qwerty Programming 3 03-09-2006 08:22 AM
how do I run gnome apps on startup? bashrc2 Linux - Software 2 03-23-2004 12:04 AM
Run Java apps Marcos Van Linux - Newbie 12 05-20-2003 11:36 PM


All times are GMT -5. The time now is 06:22 PM.

Main Menu
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