The instructions below specify how you can build the following OpenJDK projects using the Eclipse IDE for both the new InfraBuild and the Old Build systems:
Swing JMX JConsole Langtools JAXP and JAXWS Hotspot CORBA JDK – all sub-projects
Below is a list of systems and versions under which the installations and configurations were performed to come up with these instructions:
Synaptic Package Manager 0.75.9 Eclipse Indigo 3.7.2 —Eclipse JDT (Java) 3.7.2 —Eclipse CDT (C/C++) ——6.0.0.dist (C/C++ Remote debug launcher) ——1.0.2.dist (CDT GCC Cross Compiler) ——7.0.0.dist (GDB Common) Ubuntu 12.04 LTS Ant 1.8.2 OpenJDK 8 Java/Javac 1.7
In order to start, you have to create a VM (or install in your native environment), get the OpenJDK source code, install a number of packages, and build the OpenJDK from command line, as it described in Adopt OpenJDK VM Build (Old Build and InfraBuild).
A successful run of the build results in the output of the following log messages:
See also zipped file in case the .log file is too big to load and navigate online:
A successful build will result in objects created under ~/sources/jdk8_tl/build/linux-x86_64-normal-server-release.
Note: the directory linux-x86_64-normal-server-release can vary depending on the CPU, OS and the version of the OpenJDK source used to build the OpenJDK artefacts.
These instructions were inspired by members working on the OpenJDK project, below are links leading up to their pages. Their instructions and systemic approach have helped in the process:
Netbeans projects for OpenJDK – Martijn Verburg
Netbeans projects for OpenJDK – Andrii Rodionov
Hacking Hotspot in Eclipse – Roman Kennke
Adding include paths to your C/C++ project - Roland
Sachin Handiekar – Screen-shots and other improvements to the instructions.
Girish Balakrishnan – for reviewing and feedback on the Hotspot instructions.
Jonathan Gibbons (from the OpenJDK team) - Thanks for reviewing the Langtools section.
A number of other online resources and videos have also helped in the process.