rhino throws exception

running a javascript expression using rhino throws the following exceptions:

$ rhino -e ‘print(“Hello, world!”);’
Exception in thread “main” java.lang.NullPointerException
at org.mozilla.javascript.Kit.classOrNull(Kit.java:92)
at org.mozilla.javascript.tools.shell.ShellLine.getStream(ShellLine.java:65)
at org.mozilla.javascript.tools.shell.Global.init(Global.java:153)
at org.mozilla.javascript.tools.shell.Global$1.run(Global.java:108)
at org.mozilla.javascript.Context.call(Context.java:499)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511)
at org.mozilla.javascript.tools.shell.Global.init(Global.java:105)
at org.mozilla.javascript.tools.shell.Main.processOptions(Main.java:263)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:153)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:140)

I had to install the Sun JVM (java-1_6_0-sun-1.6.0.u12-1.2.1, was: OpenJDK) to fix the errors.

Do you have any suggestions to deal with the OpenJDK configuration problem?

THX