- Intall the latest sun java 6 and browser plugins by following the instructions here.
- Set JAVA_HOME and PATH in ~/.profile. An example is the following
export JAVA_HOME="/usr/lib/jvm/jdk1.6.0_31" export PATH="$JAVA_HOME/bin:$PATH"
- Install the mime type for "jnlp" files. In the terminal, type
xdg-mime install $JAVA_HOME/jre/lib/desktop/mime/packages/x-java-jnlp-file.xml
- Install the desktop file for "jnlp" files. In the terminal, type
cp $JAVA_HOME/jre/lib/desktop/applications/sun-javaws.desktop ~/.local/share/applications/
And make sure it contains the following lineExec=javaws %u
- Relate the mime type and the desktop file. Add the following line to ~/.local/share/applications/mimeapps.list
application/x-java-jnlp-file=sun-javaws.desktop
- Configure Google Chrome browser to open the "jnlp" files automatically after downloading. Download any jnlp file in Google Chrome browser, and select "always open files of this type" in Google Chrome.
Category
- Computer and Internet (49)
- Programming (19)
- Mathematics (10)
- R (8)
- Bash (6)
- C++ (3)
- LaTeX (3)
- Syntax (2)
- 武术 (2)
- Brain Teaser (1)
- CLRS (1)
- Complexity Analysis (1)
- Iteration (1)
- Mac (1)
- Markov Chain (1)
- Probability (1)
- Recursion (1)
- Spirituality (1)
Tuesday, January 31, 2012
How to let Google Chrome automatically handle Java Web Start in Ubuntu
A previous post describes a way to run TopCoder Arena without launching from browsers. This post gives another way to launch Topcoder Arena in Google Chrome browser under Ubuntu. It should work for other Java Web Start applications, too.
Subscribe to:
Post Comments (Atom)
8 comments:
Excellent!! This really help me!
Thanks you
My JDK doesn't have a desktop directory in the lib directory. I believe I installed the correct version, correctly. Any idea where I went wrong?
I have the same problem as anonymous above. No desktop directory under lib.
Any ideas?
Just for anyone who struggles. The desktop folder isn't in the jdk's lib folder but in the jre's lib folder (as it says .../jre/lib/desktop...)
try this
xdg-mime install $JAVA_HOME/lib/desktop/mime/packages/x-java-jnlp-file.xml
same for the others...
Nice Blog. Thanks for sharing with us. Such amazing information.
Best Boarding School in Dehradun
Best Boarding School in India
Best Boarding School in Uttarakhand
Top Residential School in Dehradun
Top Boarding School in India Fee Structure
Top Coed Boarding School in India
Top Girls Boarding School in India
Top CBSE Boarding School in India
You have shared with me an extremely useful article. Thanks so much for your kind words. This article was very interesting and informative to me. Are you interested in adding any new information to your blog? Published in our article. In this article, we will provide more information on The uses of webcam with yahoo Messenger. It is recommended to read.
Post a Comment