Thanks to Darren who added some notes on it, there may be hope yet! (I copy things things here to my blog in case the original sources disappear as many others have done… :-()
And Darren, yes it did help very much!
Eric Feminella: Solutions Architect, Rich Internet Applications » Blog Archive » Cairngen 2.1
For anyone interested, I’ve worked out how to get Cairngen running
on Tiger. It probably works for Leopard too. It wasn’t easy as there’s
no (official) JRE 1.6 available but now I’ve got there, it’s reasonably
straightforward. You just have to add BSF, Rhino and Commons-Logging
jars to your Ant classpath. Like so:1. Download and copy bsf.jar and js.jar to your Ant lib directory. Get them here:
http://jakarta.apache.org/site/downloads/downloads_bsf.cgi
http://www.mozilla.org/rhino/download.html2. In Eclipse->Preferences->Ant->Runtime->Classpath, add
the 2 jars above (Add External JARs button), as well as
org.apache.commons.logging._*.jar (which should already be in your
Eclipse plugins directory). I’ve added them to Ant Home Entries which
works for me.That’s really all there is to it. Then, as Eric says, you have to
run the appropriate targets in your Ant build file if you want to
create delegates, events, vo’s, etc. I couldn’t find an explanation as
to the best way to do this so I just added the targets to line 63 of
build.xml so it’s now:depends=”log, create-model-locator, create-front-controller,
create-service-locator, create-multiple-sequences-include-delegates,
create-multiple-value-objects” />I hope this helps.
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
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