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

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

Page History

Versions Compared

Old Version 1

changes.mady.by.user Jim Laskey

Saved on May 08, 2013

compared with

New Version 2

changes.mady.by.user Jim Laskey

Saved on May 08, 2013

  • Next Change: Difference between versions 2 and 3
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The working repository 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

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": 269, "requestCorrelationId": "175b0ca57aa0a869"}