Eclipse Projects For OpenJDK

Version 1

    How to build OpenJDK projects in Eclipse (for Ubuntu 12.04 LTS)

     

    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).

     

     

     

    Installing Eclipse for Java via the Synaptic Package Manager

    See Installing Eclipse for Java via the Synaptic Package Manager

     

     

     

    Installing Eclipse C/C++ plug-in (Eclipse CDT) via the Synaptic Package Manager

    See Installing Eclipse C/C++ plug-in (Eclipse CDT) via the Synaptic Package Manager

     

     

     


    Preparing projects, folders and files

    See Preparing projects, folders and files

     

    Swing

    See How to build the Swing project in Eclipse

     

    JMX

    See How to build the JMX project in Eclipse

     

    JConsole

    See How to build the JConsole project in Eclipse

     

    Langtools

    See How to build the Langtools project in Eclipse

     

    JAXP and JAXWS

    See How to build the JAXP and JAXWS projects in Eclipse

     

    Hotspot

    See How to build the Hotspot project in Eclipse

     

    Corba

    See How to build the Corba project in Eclipse

     

    JDK – all sub-projects

    See How to build the JDK sub-projects in Eclipse


     

    Full OpenJDK build Logs

    A successful run of the build results in the output of the following log messages:

     infraBuildVerboseMake.log  

    See also zipped file in case the .log file is too big to load and navigate online:

     infraBuildVerboseMake.zip  

     

    Full OpenJDK build output: artefacts

    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.

     


     

    Newly created Eclipse projects

    See Newly created Eclipse projects

     

     

     

    Credits & kudos

    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.

     

    Here's the original blog used to write the wiki instructions.

     

    How to build JTReg in Eclipse (for Ubuntu 12.04 LTS)

    See How to build JTReg in Eclipse (for Ubuntu 12.04 LTS)