I'm trying to dynamically compile a class using the Scripting for Java API as outlined here:
http://blogs.sun.com/sundararajan/entry/dynamic_source_code_in_java
But it appears I do not have the Script Engine installed which executes Java.
When I run this:
The out put is this:
Available script engines:
-------------------------------------------
Language: ECMAScript
Engine: Mozilla Rhino
-------------------------------------------
And when I try to run the following:
After completion _myEngine ==null
So my Question is what do I need to install Download etc in order to use 'Java' as a Script Engine?
The post refers to a release candidate from 2006 called mustang, the link is no longer active. I've tried using JDK 1.6.13,JDK 1.6.18 and JDK 1.6.20 all with the same results as above. This leads me to Believe there is some Libray which I must include in order to execute java code in the scripting engine.