RhinoScriptEngine in OpenJDK1.6

Greg Lewis glewis at eyesbeyond.com
Tue Sep 6 04:30:50 UTC 2011


On Tue, Aug 30, 2011 at 09:52:18AM -0400, Dwayne MacKinnon wrote:
> Hi all,
> 
> I was attempting to install EJBCA on my FreeBSD 8.2-RELEASE-p2 box (i386) but 
> it failed. The output from the "ant bootstrap" command is as follows:
> 
> Buildfile: /usr/home/dwayne/Downloads/tmp/ejbca_4_0_3/build.xml
> 
> BUILD FAILED
> /usr/home/dwayne/Downloads/tmp/ejbca_4_0_3/build.xml:23: The following error 
> occurred while executing this line:
> /usr/home/dwayne/Downloads/tmp/ejbca_4_0_3/propertyDefaults.xml:39: The 
> following error occurred while executing this line:
> /usr/home/dwayne/Downloads/tmp/ejbca_4_0_3/propertyDefaults.xml:11: Unable to 
> create javax script engine for javascript
> 
> Total time: 0 seconds
> 
> 
> Looking at the source code from openjdk1.6, it appears that the 
> RhinoScriptEngine for javascript should be in there, but jrunscript -q doesn't 
> show any script engines at all.
> 
> Any ideas on how to get a javascript ScriptEngine? The Rhino project doesn't 
> create a JSR223 script engine because it conflicts with the one created (from 
> an older Rhino) by Sun.
> 
> Please CC me on any replies; I do not subscribe to the list.

The OpenJDK{6,7} sources don't include Rhino, although they do include
hooks for it.  IcedTea has some changes to pull in Rhino and rename the
classes appropriately, IIRC, so someone could potentially port those
changes over if they were motivated to do so.

-- 
Greg Lewis                          Email   : glewis at eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis at FreeBSD.org


More information about the freebsd-java mailing list