10-16-2010 06:17 AM
10-16-2010 07:38 AM
10-16-2010 08:23 AM
Alfresco uses Mozzila Rhino that provides the Java Script engine that exposes Java Objects through Java Script.
In addition there's an adapter layer that takes some of the Java APIs and simplifies and converts the Java API into something suitable for Java Script. The primary example of this is the ScriptNode which among other things exposes properties in a java script freindly manner.
$ cat test.js
java.lang.System.out.println("hi, mom!");
$ java org.mozilla.javascript.tools.jsc.Main test.js
$ ls *.class
test.class
$ java test
hi, mom!
$ java org.mozilla.javascript.tools.jsc.Main -extends java.applet.Applet
-implements java.lang.Runnable NervousText.js
It seems that are java code inside test.js, it seems we just need to javac test.js(rename to .java)?10-16-2010 12:44 PM
10-16-2010 11:08 PM
http://wiki.alfresco.com/wiki/JavaScript_APIThanks, I am sorry that I overlooked this page.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.