This GitHub project provides build scripts for OpenJDK 7, 8, 8+Lambda, 8+Jigsaw.
These scripts add goodies like :
- ROOT CA generation, update and inclusion
- FreeType build and embedding on platform where minimal requirements are not met.
- Native packages support, aka Linux RPMs up to trusted Yum repository population.
- OSX DMG for easy install via drag&drop.
You could use these scripts from a Jenkins Powered environment to setup a Continuous Integration chain or standalone for one shot builds.
Initialy planned for Linux, this project also include Mac OSX scripts from openjdk-osx-build
Build and packages are tested on CentOS 5, 6, Fedora 18, openSUSE 12.2 and Ubuntu 12.10 weekly on my home package factory (motorized by Jenkins). Binary packages will be uploaded to Bintray really soon on a weekly basis.
How to build and package OpenJDK 7 on Linux
How to build and package OpenJDK 8 on Linux
How to build and package OpenJDK 8 with Lambda on Linux
### Yum repositories
Thanks to JFrog Bintray, OpenJDKs for Linux are available for major Linux distributions in yum repositories, install repositories like :
curl -L https://bintray.com/hgomez/obuildfactory-centos5-i386/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/
curl -L https://bintray.com/hgomez/obuildfactory-centos5-x86-64/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/
curl -L https://bintray.com/hgomez/obuildfactory-centos6-i386/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/
wget https://bintray.com/hgomez/obuildfactory-centos6-x86-64/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/
curl -L https://bintray.com/hgomez/obuildfactory-fedora18-i386/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/
curl -L https://bintray.com/hgomez/obuildfactory-fedora18-x86-64/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/
curl -L https://bintray.com/hgomez/obuildfactory-opensuse122-i386/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/zypp/repos.d/
curl -L https://bintray.com/hgomez/obuildfactory-opensuse122-x86-64/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/zypp/repos.d/
Then you could install rpm like this :
# install openjdk8 lambda on CentOS/Fedora 32bits
sudo yum install jdk-1.8.0-lambda-openjdk-i686
# install openjdk8 on CentOS/Fedora 64bits
sudo yum install jdk-1.8.0-openjdk-x86_64
# install openjdk7 on SLES/openSUSE 64bits
sudo zypper install jdk-1.7.0-openjdk-x86_64
And then update then with yum/zypper :
# update obuildfactory package on CentOS/Fedora
sudo yum update
# update obuildfactory package on SLES/openSUSE
sudo zypper update
I don't have anymore OSX machines so I won't be able to help on Apple platforms. There is some wiki pages who detailed how to build, but there is no guaranty about success. BTW, I'll welcome pull-requests so it will help others OSX users.
Building and packaging OpenJDK7 for OSX
Building and packaging OpenJDK8 for OSX
Building and packaging OpenJDK8 with Lambda for OSX
These scripts are provided under Apache Software Licence 2.0.