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

Advertisements

5 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

  3. Hi
    I had same problem lunching with Java 5 and I managed to do it, here’s my solution :
    1. download these libs and create a classpath :

    2. use the classpath with the :

    var p = project.getProperty(“dists.list”); p=p.replaceAll(“;”,”,”); if(p.substr(0,1)==”,”) p=p.substr(1);
    project.setProperty(“dists.list”,p);

    Hope it helps.

    Comment by Lohmar ASHAR (@AsharLohmar) — August 9, 2012 @ 12:38 pm

  4. Hi
    I had same problem lunching <script> with Java 5 and I managed to do it, here's my solution :
    1. download these libs and create a classpath :
    <path id="ant-js.classpath">
    <pathelement location="${basedir}/lib/bsf-2.4.0.jar" />
    <pathelement location="${basedir}/lib/js-1.6R7.jar" />
    <pathelement location="${basedir}/lib/commons-logging-1.1.1.jar" />
    </path>
    2. use the classpath with the <script> :
    <script language="javascript">
    <classpath refid="ant-js.classpath" />
    var p = project.getProperty("dists.list"); p=p.replaceAll(";",","); if(p.substr(0,1)==",") p=p.substr(1);
    project.setProperty("dists.list",p);
    </script>

    Hope it helps.

    PS: sorry about the first post,I thought it will encode the html

    Comment by Lohmar ASHAR (@AsharLohmar) — August 9, 2012 @ 12:40 pm

  5. […] Cairngen, Eclipse and “Unable to load a script engine … – Cairngen, Eclipse and “Unable to load a script engine manager” Filed under: … I got this “unable to load a script engine manager” error. Fortunately I had just checked my Java VM version … Like Loading… […]

    Pingback by How To Fix Eclipse Evolution Error Loading Scripting Engine in Windows — January 20, 2015 @ 7:23 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

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

Create a free website or blog at WordPress.com.

%d bloggers like this: