
Monday November 12, 2007
What's new with Scripting for the Java platform?
Sorry about the looo..ng hibernation! Now, it is time for updates on the Scripting project.
- Yoko Harada updated JRuby script engine with JRuby 1.0.2 and added few other fixes in engine code.
- I've pre-built binaries of the project (uploaded the .zip and .tar.gz files)
Three new jsr-223 compliant script engines:
- JavaFX Script interpreter had jsr-223 support. Now, the JavaFX Script compiler has jsr-223 support -- you may want to checkout JavaFX Script compiler project. The following code works as expected:
import javax.script.*;
public class Test {
public static void main(String[] args) throws Exception {
ScriptEngineManager m = new ScriptEngineManager();
ScriptEngine e = m.getEngineByName("javafx");
e.eval("<<java.lang>>.System.out.println(\"hello\");");
}
}
Please note that you need to build JavaFX Script compiler by checking out sources from the SVN repository and put the jar in the CLASSPATH.
- Xavier Clerc sent a link to the jsr-223 script engine for the Object Caml language. Thanks!
- Alexandre Bergel sent a link to the jsr-223 script engine for the Smalltalk language. Thanks!
Happy scripting!
( Nov 12 2007, 01:17:27 PM IST )
Permalink

|

|

|

|

|