compile jdk source code
在macos yosemite上编译openjdk9
在 wiki 上查看不同系统的支持状况
- 安装xquartz
- 安装freetype: brew install freetype
- 要有oracle jdk8以上, 如果configure时候找不到, 需要
- 跟官网介绍,我编译的是dev的 fastdebug版本
hg clone http://hg.openjdk.java.net/jdk9/jdk9 jdk9
cd ./jdk9
./get_source.sh (This will take sometime to download the sources so be patient. May be few hours sometimes)
./configure –enable-debug –with-target-bits=64
测试xcode7下也可以编译成功
ref:
wiki
building-openjdk-9-on-a-osx-or-any-linux
http://quinn-zhuang.iteye.com/blog/2177397
http://my.oschina.net/u/1043802/blog/466423
https://github.com/hgomez/obuildfactory/wiki/Building-and-Packaging-OpenJDK9-for-OSX