Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated with Xquartz and CPATH for X11.

...

JTReg is not required to build but useful for running regression tests

...

Code Block
hg clone http://hg.openjdk.java.net/jdk8/jdk8-dev
cd jdk7u-devjdk8
chmod 755 get_source.sh
./get_source.sh

...

Code Block
titleUsing Apple's Java 6
make ALLOW_DOWNLOADS=true SA_APPLE_BOOT_JAVA=true ALWAYS_PASS_TEST_GAMMA=true ALT_BOOTDIR=`/usr/libexec/java_home -v 1.6` HOTSPOT_BUILD_JOBS=`sysctl -n hw.ncpu`

If you are building on Mountain Lion you must also define the path to the X11 includes:export CPATH="/usr/X11/include"* Steps for incremental building

3. Smoke Test

Code Block
build/macosx-universal/j2sdk-image/bin/java -version

...

Code Block
mkdir -p ~/Library/Java/JavaVirtualMachines
cp -R build/macosx-universal/j2sdk-bundle/1jdk1.7.0.jdk ~/Library/Java/JavaVirtualMachines

...

  1. Download an official or unofficial build
  2. Open If you have /Applications/Utilities/Java Preferences.app:
    1. Open it
    2. Drag both "OpenJDK 7" entries to the top of the list
  3. Run "java -version" in /Applications/Utilities/Terminal.app