How to Obtain and Build OpenJDK 8 and OpenJDK 8u from Source
This guide explains how to clone the OpenJDK 8 and 8u repositories using Mercurial, set up the environment, and compile the source code with the standard configure and make process, noting that parallel builds are not supported.
Openjdk 8
Get Source Code
$ hg clone http://hg.openjdk.java.net/build-infra/jdk8 openjdk8
$ cd openjdk8
$ sh ./get_source.shCompile
if you familiar with free software standard configure build system, then it unnecessary to describe here.
基本上:
$ sh ./configure
$ unset CLASSPATH
$ make allOpenjdk 8u
Get Source Code
$ hg clone http://hg.openjdk.java.net/jdk8u/jdk8u openjdk8uMaster
$ cd openjdk8uMaster
$ export LC_ALL=C
$ export LANG=C
$ sh ./get_source.shCompile
$ sh ./configure --with-milestone=fcs --with-update-version=20
$ unset CLASSPATH
$ make allbtw, 额外说一句,openjdk 8的 make 不支持 -j 参数,大家就别并行编译了。
何伟平
去哪儿网/旅游度假事业部
搜索技术研究人员和数据库研究人员,PostgreSQL 中文手册第一个版本的译者和 Programming Perl 第三版的译者。长期关注在搜索技术、分布式技术、数据库技术和集群设计组织管理行业。曾在雅虎中国负责网页搜索技术部门。在IT圈有着接近18年的从业经验。2010年加入Qunar,先后创建和开发去哪儿攻略搜索频道、去哪儿团购频道,现负责 Qunar.com 度假业务部门。
文章转自公司wiki《老何的1001夜》,Qunar小伙伴可以登录wiki查看更多文章
Qunar Tech Salon
Qunar Tech Salon is a learning and exchange platform for Qunar engineers and industry peers. We share cutting-edge technology trends and topics, providing a free platform for mid-to-senior technical professionals to exchange and learn.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.