Main /
NashornThis page is about building Nashorn, see also JS. Check Out the Repohttps://wiki.openjdk.java.net/display/Nashorn/Building+Nashorn says hg clone http://hg.openjdk.java.net/nashorn/jdk8 nashorn~jdk8 which is wrong: bash-3.2$ hg clone http://hg.openjdk.java.net/nashorn/jdk8 nashorn~jdk8 abort: HTTP Error 404: Not Found bash-3.2$ Try: hg clone http://hg.openjdk.java.net/jdk8/jdk8/nashorn Buildcd nashorn/make ant ant jar Update the jarThe JDK includes a copy of To determine which JDK and which With Ptolemy II, I did: bash-3.2$ export JAVAFLAGS=-verbose bash-3.2$ $PTII/bin/vergil -verbose org/terraswarm/accessor/demo/SecureSocket/SecureSocket.xml | grep nashorn.jar | head [Loaded jdk.nashorn.api.scripting.NashornScriptEngineFactory from file:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/nashorn.jar] ... So, the file to replace is As root, I backed it up and replaced it: bash-3.2$ sudo -i ealmac23:~ root# cd /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext ealmac23:ext root# mv nashorn.jar .. ealmac23:ext root# mv ~cxh/.ptolemyII/nashorn.jar . ealmac23:ext root# exit |