Skip to content

Joe8Bit/dynjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dynjs - ECMAScript Runtime for the JVM

Build Status

cloudbees rocks!

Bug Reports

We're using GitHub Issues. Please let us know what issues you find!

Setting up your environment

Getting JDK7

You can get information on installing JDK7 at the java site.

  1. Download and install it to your user (not to the entire machine)
  2. Before running mvn install run the following to set the JDK7 as your default compiler
export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)

If you run into problems with this when working on OSX (due to the default Apple JDK) run the following command to make sure the JDK7 installed properly:

$ /usr/libexec/java_home -V
Matching Java Virtual Machines (4):
    1.8.0, x86_64:  "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
    1.7.0_67, x86_64:   "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home
    1.6.0_65-b14-462, x86_64:	"Java SE 6"	/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    1.6.0_65-b14-462, i386:	"Java SE 6"	/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

If you're missing the line starting 1.7.0 then the JDK7 didn't install properly.

Getting started

Building from sources

  1. git clone https://github.com/dynjs/dynjs.git && cd dynjs
  2. mvn install -s support/settings.xml

Download

Alternatively download the latest dynjs dist zip package from our CI job, then unpack it somewhere. As a convenience, you can symlink bin/dynjs to some directory listed on your $PATH.

Running

Run ./bin/dynjs --console for the REPL and try the snippet below:

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

For more options, run ./dynjs --help.

About

ECMAScript runtime for the JVM

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 69.7%
  • JavaScript 30.1%
  • Shell 0.2%