-
Download and install OpenJDK7, it's Java7 based:
OpenJDK 7 can be downloaded at http://code.google.com/p/openjdk-osx-build/downloads/detail?name=OpenJDK-OSX-1.7-universal-20110825.dmg. Download and install it to your user(not to the entire machine) and before running mvn install run (or use Java7 as default compiler):
export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)
-
Configure and add projects dependencies:
Jitescript can be found at https://github.com/qmx/jitescript Clone it (https://github.com/qmx/jitescript.git) and run mvn install to build and add to your repository
- git clone https://github.com/dynjs/dynjs.git && cd dynjs
- mvn install
- Get the jar into dynjs/target folder
Alternatively download the latest version of dyn.js at https://dynjs.ci.cloudbees.com/job/dynjs/ws/core/target/dynjs-all.jar
Try java -jar dynjs-all.jar --help
Run the snippet below:
var x = 1 + 1;
print(x);