...
- Hardware: Any 64-bit capable Intel Mac
- RAM: 4GB
- Minimum OS version: Mac OS X 10.7.3
- Xcode: 4.1 or later from the Mac App Store (free download)
- Mercurial: http://mercurial.berkwood.com/
- X11
- On OS X Lion: Run X11.app to install as an additional download
- On OS X Mountain Lion: XQuartz
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 | ||
---|---|---|
| ||
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 |
...
- Download an official or unofficial build
- Open If you have /Applications/Utilities/Java Preferences.app:
- Open it
- Drag both "OpenJDK 7" entries to the top of the list
- Run "java -version" in /Applications/Utilities/Terminal.app
Overview
Content Tools
ThemeBuilder