Skip to content

Instantly share code, notes, and snippets.

@hns
Created April 1, 2011 01:45
Show Gist options
  • Save hns/897609 to your computer and use it in GitHub Desktop.
Save hns/897609 to your computer and use it in GitHub Desktop.
launch script for running jack + narwhal on rhino shell
# run from the jack directory - adjust paths as necessary
java -cp ../rhino/js.jar:jars/simple-4.1.10.jar org.mozilla.javascript.tools.shell.Main \
-modules ../narwhal/engines/rhino/lib/ -modules ../narwhal/engines/default/lib/ \
-modules ../narwhal/lib/ -modules lib/ run-jack.js
global = this
system = require("system")
system.engines = ["rhino"]
system.engine = "rhino"
require("global-commonjs")
require("jackup").main(["command", "examples/example.js"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment