Created
April 1, 2011 01:45
-
-
Save hns/897609 to your computer and use it in GitHub Desktop.
launch script for running jack + narwhal on rhino shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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