javaws behind proxy

Dec 13 2011 Published under Linux | Tags:

I ran into this problem of failing to launch TopCoder’s .jnlp arena file from my lab computer.
When clicked “Launch Arena”, nothing happened. A quick check on terminal ‘ps aux | grep java’ says that java application is running.

This what I get when launching TopCoder’s arena file in terminal

$ javaws ContestAppletProd.jnlp 
Unable to use Firefox's proxy settings. Using "DIRECT" as proxy type.

So the problem is in the proxy settings.
After much research on the net, I found a solution to my problem.

the current javaws is running on the version found in /usr/lib/jvm/java-6-openjdk/jre/bin/javaws
Changing javaws to run on java-6-sun version solves the problem.

$ sudo update-alternatives --config javaws
There are 2 choices for the alternative javaws (providing /usr/bin/javaws).

  Selection    Path                                        Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-openjdk/jre/bin/javaws   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk/jre/bin/javaws   1061      manual mode
  2            /usr/lib/jvm/java-6-sun/jre/bin/javaws       63        manual mode

Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/javaws to provide /usr/bin/javaws (javaws) in manual mode.

run

$ ControlPanel

to change proxy settings.

reference:
http://fusharblog.com/integrating-topcoder-arena-in-ubuntu-menu/
http://www.webupd8.org/2011/03/install-java-in-ubuntu-1104-natty.html

No responses yet

Comments are closed at this time.

Login