Gradle project for automatic OpenJDK/OpenJFX builds
I’m currently working on a Gradle project that downloads OpenJDK & OpenJFX sources and builds both afterwards with little to no configuration necessary. Currently it works for OS X. Other operating systems coming soon!
Feel free to contribute!
Requirements
- Mac OS = 10.8.x (unknown whether it will work for 10.9)
- XCode == 4.6.x
- X11/XQuartz (provides freetype for JDK)
- Mercurial (version?)
- JDK >= 1.7.0_25 and < 1.8.x
Download The Project
The project can be found on GitHub: https://github.com/miho/OpenJDK-Builder
I Cant Wait!
If you want to try right away here’s what you have to do:
#> cd PathToOpenJDK-Builder/jdk8
#> ./gradlew assemble
If something goes wrong please keep on reading.
Usage
First we explore the file structure:
#> cd PathToOpenJDK-Builder/jdk8
#> ls
binary_stub gradle gradlew.bat jfx8-src
build.gradle gradlew jdk8-src
The build.gradle
file contains several important variables:
BOOTSTRAP_JDK
: location of the boostrap JDK. Defaults isJDK 7.0_45
DEVKIT
: Xcode location (must be Xcode 4.6.x).MAC_OSX_SDK
: OS X SDK for building OpenJFX. Default is 10.7BRANCH
: OpenJFX mercurial branch. Default isgraphics
Before proceeding please copy a jfxrt.jar
from JavaFX 8 preview release to the binary_stub
folder.
Now it is time for building OpenJDK and OpenJFX:
#> ./gradlew assemble
That’s it!
Other operating systems coming soon!
Stay tuned and follow me on Twitter
To be continued…
Leave a Reply