Ramblings

March 31, 2008

Cairngen, Eclipse and “Unable to load a script engine manager”

Filed under: cairngen, cairngorm, dev, java, tool — michaelangela @ 9:16 pm

I need to add a bunch of functionality and I really want to automate the file creation so I just started trying out Cairngen. I got this “unable to load a script engine manager” error. Fortunately I had just checked my Java VM version (default Mac OS 1.5) and according to this post I need at least JRE 6. Let’s see now… hrmm… Java on a Mac is a little trickier than I thought… distressing

Eric Feminella: Solutions Architect, Rich Internet Applications » Blog Archive » Cairngen 2.1

  1. Leif Wells UNITED STATES Says:

    November 19th, 2007 at 10:46 am

    Eric, I am trying to use Cairngen 2.1 in FB 3 beta 2 (stand-alone) and getting an error:

    BUILD FAILED

    C:\…\build.xml:373: Unable to load a script engine manager (org.apache.bsf.BSFManager or javax.script.ScriptEngineManager)

    Have you seen this before? Is there a software update I need to install? If so, which one?

    Thanks,

    Leif

  2. eric UNITED STATES Says:

    November 19th, 2007 at 11:59 am

    Hey Lief,

    You need to upgrade to JRE 6. First download and install at: http://www.java.com/en/download/manual.jsp

    Once you have upgraded the Java Runtime, restart Eclipse and from
    the toolbar select Windows > Preferences > Java (expand) >
    Installed JREs > Add > Browse (browse to Java Installation and
    select latest JRE). Click OK.

    Restart Eclipse and you should be good to go. Let me know if you have any problems.

    - Eric

2 Comments »

  1. [...] Cairngen, Eclipse and “Unable to load a script engine manager” [...]

    Pingback by Java 6 Port for Mac OS X 10.4 and 10.5 (Intel) « Ramblings — March 31, 2008 @ 9:20 pm

  2. You can even try downloading script-api-1.0-jdk14.jar from “http://mirrors.ibiblio.org/pub/mirrors/maven/mule/dependencies/maven2/javax/script/script-api/1.0/script-api-1.0-jdk14.jar” and keeping that ant classpath.

    –Aditya.

    Comment by adityac1984 — July 13, 2009 @ 12:51 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

Blog at WordPress.com.