Jar Hell with Rhino


Everybody seems to package a copy of the Mozilla JavaScript interpreter, Rhino. If you get a message mentioning org/mozilla/javascript/ScriptOrFnNode then you have more than one version on your class-path. The recent (2011) releases of Rhino have replaced ScriptOrFnNode with AstRoot. Make sure the latest rhino.jar is early on the class-path list. One offender is yuicompressor.jar. Another comes with Java in classes.jar. I know I have a third still in the uSDLC line-up – somewhere.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s