Thursday, January 19, 2012

Set javaws (Java Web Start) for running appMobi XDK on Ubuntu Linux

Once you install appMobi XDK in Google Chrome, running on Linux(such as Ubuntu). MAY BE it cannot run due to error in javaws (Java Web Start). It's because the default javaws of Ubuntu Linux is from openJDK, you have to set the javaws of Oracle JDK.

Suppose you have installed Oracle JDK correctly. The follow steps show how to set javaws using Oracle JDK.

First of all, Check your installed javaws. Open a Terminal and enter the command.
$ sudo update-alternatives --config javaws

Normally, you have only ONE javaws in aternative javaws list.

You have to re-assign javaws use alternative from Oracle JDK. In my case, my jdk installed at /usr/lib/jvm/jdk1.7.0_02/, and my javaws is installed at /usr/lib/jvm/jdk1.7.0_02/bin/javaws.

Enter the command:
$ sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.7.0_02/bin/javaws 1

Finally, re-enter the command:
$ sudo update-alternatives --config javaws

and select the expected javaws in the list.
Set javaws

No comments:

Post a Comment