Helma Logo
main list history

Using Helma NG with OpenJDK

OpenJDK, which is the default Java implementation on various Linux distributions, has a long-standing bug that makes it difficult to run other versions of Mozilla Rhino than the one shipped with the distribution.

Helma NG relies on a more recent version of Rhino including, among other things, features of JavaScript 1.8 and EcmaScript 5. Although recent snapshots of Helma NG include workarounds for this bug, it is still possible you may encounter problems when running Helma NG with OpenJDK.

In this case, you may consider switching to a different Java implementation. For example, to install Sun's version of Java and make it the default on Ubunutu 9.04 (Jaunty Jackalope), use the following commands:

sudo aptitude install sun-java6-jdk
sudo update-java-alternatives -s java-6-sun

You should now have the official Sun JDK installed as default Java implementation.


#1 by jGc at 2009/11/04 07:44

I missed this post somehow and wasted a good couple of hours. My 2cents for people new to Ubuntu (Jaunty in my limited experience). Before you start installing, make sure multiverse is enabled in /etc/apt/sources.list Otherwise, you will get a slap on the wrist.

When you are remotely connected to the server while installing, use tab to agree with Sun's various questions. (What exactly did I agree to??? Sorry, I am from Math where sharing ideas works on a different method.) Their screen looks weird when you are connected vis ssh. Not very impressive compared to MySQL installation UI. (Is that a Swing app?)

As far as OpenJDK not working properly, it's just mind boggling. Then again, it's been like this forever in Java. At the time I was trying out CentOS as well. I guess CentOS forks were not happy with Sun License. Their base advice is to use Open JDK. Once again, write once, debug everywhere.

Kudos to you brainiacs using Java to do good work. I have no idea how you guys do it. Keep up the good work. Wish I could buy coffee to those who are working on Storage tools.