openjdk10 mac 编译

  1. 源码下载
    https://pan.baidu.com/s/1skVhHlN

  2. 安装xcode command line tools
xcode-select --install
  1. 安装freetype,执行
brew install freetype
  1. 安装jdk9
  2. 在jdk10目录下配置编译
bash configure --with-jvm-variants=server  --with-target-bits=64 --enable-debug   --disable-warnings-as-errors --with-boot-jdk=/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
  1. 构建
make

猜你喜欢

转载自www.cnblogs.com/niconico-girl/p/9671495.html