Comment 0 for bug 920214

Revision history for this message
Reiger (jm-ouwerkerk) wrote :

The OpenJDK 7 JRE headless package does not configure the Rhino interpreter for use with JSR223 interface. (Presumably, it is not on the classpath.)

To test: Use the Jrunscript tool from the JDK (install openjdk-7-jdk), run: /usr/lib/jvm/openjdk-7-jdk/bin/jrunscript -q

Expect:
It should output a list of installed JSR223 interpreters, one of which is the Mozilla Rhino JavaScript interpreter:

Got:
Nothing.

For a comparison here is what an old SUN Java 6 JDK installation reports:
Run: /usr/lib/jvm/java-6-sun/bin/jrunscript -q

Language ECMAScript 1.6 implemention "Mozilla Rhino" 1.6 release 2

---------------

Note that the Mozilla Rhino interpreter is definitely shipped with the OpenJDK 7 JRE headless package:

dpkg -L openjdk-7-jre-headless |grep rhino
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rhino.jar

System info:

lsb_release -rd
Description: Ubuntu precise (development branch)
Release: 12.04

apt-cache policy openjdk-7-jdk
openjdk-7-jdk:
  Installed: 7~b147-2.0-1ubuntu2
  Candidate: 7~b147-2.0-1ubuntu2
  Version table:
 *** 7~b147-2.0-1ubuntu2 0
        500 http://main.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status