Proposed patches for nashorn build infrastructure

Andreas Rieber rieberandreas at gmail.com
Thu Jan 24 09:20:14 PST 2013


Works as expected! I also managed to patch the IcedTea Rhino version 
from jdk7 in, so i can compare both engines.

cd 
/usr/local/src/jdk8nashorn/build/linux-x86-normal-server-release/images/j2sdk-image/bin
./jrunscript -q
Language ECMAScript ECMA - 262 Edition 5.1 implemention "Oracle Nashorn" 0.1
Language ECMAScript 1.8 implemention "Mozilla Rhino" 1.7 release 3 
PRERELEASE


On 23.01.13 19:05, Jim Laskey (Oracle) wrote:
> [For the hard core]
>
> I successfully built a jdk with nashorn bits included.  More work to do, but I thought I'd post the preliminary patches here so others can play with/review them (and as a backup).  I'll check these changes into the nashorn forest in a bit, once I find out what the ccc processes are.  Pending is the licence for dynalink.  Once we have that, we will include dynalink  sources and remove the ant step.
>
> Steps:
>
> hg fclone http://hg.openjdk.java.net/nashorn/jdk8 nashorn~jdk8~infra
> cd nashorn~jdk8~infra
> hg fpull -u http://hg.openjdk.java.net/jdk8/jdk8
> patch -p1 < nashorn~top.patch
> (cd jdk l patch -p1 < nashorn~jdk.patch)
> (cd nashon l patch -p1 < nashorn~ nashon.patch)
> (cd nashorn/make ; ant dist)
> sh ./configure
> make all NEWBUILD=true
>
> You may have to stop and fix the encoding in jdk/THIRD_PARTY_README to be UTF-8.  Then just restart the make.
>
> Once done, you should be able to;
>
> cd build/yourplatform/images/j2re-bundle/jre1.8.0.jre/Contents/Home
> setenv JAVA_HOME .
> bin/jjs
> jjs> print("hello");
> hello


More information about the nashorn-dev mailing list