• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. Nashorn
  4. Building Nashorn

Building Nashorn

  • Created by Jim Laskey, last modified by Sundararajan Athijegannathan on Jan 14, 2014

OpenJDK 9

The working forest for Nashorn for jdk9 is at http://hg.openjdk.java.net/jdk9/dev/ Nashorn repo is @ http://hg.openjdk.java.net/jdk9/dev/nashorn From the "jdk9/dev" there are routine pushes of nashorn (along with the other repos) to master forest. Build and test instructions remain the same for now. Changes specific to jdk9, if any, will be documented in future.

OpenJDK 8

The working forest for Nashorn is at http://hg.openjdk.java.net/nashorn/jdk8, but there are routine pushes of nashorn to the jdk8 tl and master repositories.

The primary method of building Nashorn is along with the the rest of the JDK, Building The JDK. If you have the mercurial forest extension installed (forest can be found in ./common/bin or at hg clone https://bitbucket.org/gxti/hgforest), the steps are as follows;

 hg fclone http://hg.openjdk.java.net/nashorn/jdk8 nashorn~jdk8
cd nashorn~jdk8
sh configure
make all

If you don't have the mercurial forest extension, follows these steps;

 hg clone http://hg.openjdk.java.net/nashorn/jdk8 nashorn~jdk8
cd nashorn~jdk8
sh get_source.sh
sh configure
make all

Successive builds can be done by;

 make all

The resulting build will be in the ./build directory. The organization depends on the platform. On unix/mac systems you can find the sdk image using;

 find build -name "j2sdk-image/"

You can then test that image directly by;

 export JAVA_HOME $PWD/build/.../j2sdk-image (or setenv JAVA_HOME $PWD/build/.../j2sdk-image)
java -fullversion

If you want to just work with the Nashorn repository against an existing JDK8 build, then you can use the ant scripts provided in the nashorn repository.

 hg clone http://hg.openjdk.java.net/nashorn/jdk8/nashorn nashorn
cd nashorn
(cd make ; ant)

The result can be found at ./dist/nashorn.jar. Just include this in your class path.

Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 190, "requestCorrelationId": "6b6bcd071c1821f7"}