Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
ECMAScript runtime for the JVM
Java JavaScript Other
Pull request Compare This branch is 1878 commits behind master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
dynjs
.gitignore
LICENSE.txt
README.markdown
TODO.markdown
pom.xml
run-repl

README.markdown

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);
Something went wrong with that request. Please try again.