Building a JDK with nashorn embedded
Jim Laskey (Oracle)
james.laskey at oracle.com
Mon Jan 28 18:02:10 PST 2013
The basic build system is in place to build nashorn with jdk8. This is not part of the jdk8 build per se. It merely builds the jdk with nashorn in it's final resting place. The remaining effort involves getting dynalink integrated with nashorn and pushing to the main repo.
hg fclone http://hg.openjdk.java.net/nashorn/jdk8 nashorn~jdk8
cd nashorn~jdk8
(cd nashorn/make ; ant get-dynalink)
sh ./configure
make all NEWBUILD=true
An sdk home can be found at
./build/macosx-x86_64-normal-server-release/images/j2sdk-bundle/jdk1.8.0.jdk/Contents/Home
so you could
export JAVA_HOME=./build/macosx-x86_64-normal-server-release/images/j2sdk-bundle/jdk1.8.0.jdk/Contents/Home
or
setenv JAVA_HOME ./build/macosx-x86_64-normal-server-release/images/j2sdk-bundle/jdk1.8.0.jdk/Contents/Home
and then
$JAVA_HOME/bin/jjs
or use this jdk with the script manager.
Cheers,
-- Jim
More information about the nashorn-dev
mailing list