Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.17 KB

README.markdown

File metadata and controls

42 lines (26 loc) · 1.17 KB

dyn.js - invokedynamic-based javascript impl

cloudbees rocks!

Setting up environment

  1. 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)
    
  2. 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
    

Getting started

Building from sources

  1. git clone https://github.com/dynjs/dynjs.git && cd dynjs
  2. mvn install
  3. Get the jar into dynjs/target folder

Download

Alternatively download the latest version of dyn.js at https://dynjs.ci.cloudbees.com/job/dynjs/ws/core/target/dynjs-all.jar

Running

Try java -jar dynjs-all.jar --help

Run the snippet below:

var x = 1 + 1;
print(x);