« August 2008
SunMonTueWedThuFriSat
     
1
2
3
4
5
6
7
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
      
Today
XML

Blog::Navigation

GetJava Download Button
Get the Source
Personal Blog

Blog::Referers

Today's Page Hits: 356

Powered by Roller Weblogger.
« javac's hidden optio... | Main | 13 players in a 11... »
20071112 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.

  1. Yoko Harada updated JRuby script engine with JRuby 1.0.2 and added few other fixes in engine code.
  2. I've pre-built binaries of the project (uploaded the .zip and .tar.gz files)

Three new jsr-223 compliant script engines:

  1. 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.
  2. Xavier Clerc sent a link to the jsr-223 script engine for the Object Caml language. Thanks!
  3. 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 del.icio.us | furl | simpy | slashdot | technorati | digg

Comments:

Post a Comment:

Comments are closed for this entry.
Copyright (C) 2005, A. Sundararajan's Weblog