Skip to main content
Last updated March 23, 2013 00:07, by neomatrix369
Feedicon  
__TOC__ ==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 <i>both the new InfraBuild and the Old Build systems</i>: 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 [http://java.net/projects/adoptopenjdk/pages/AdoptOpenJDKVMBuild Adopt OpenJDK VM Build (Old Build and InfraBuild)]. <br/> <br /> ===<u>Installing Eclipse for Java via the Synaptic Package Manager</u>=== See [[InstallEclipseForJava] | Installing Eclipse for Java via the Synaptic Package Manager <br /> <br /> ===<u>Installing Eclipse C/C++ plug-in (Eclipse CDT) via the Synaptic Package Manager</u>=== See [[InstallEclipseForC_Cpp | Installing Eclipse C/C++ plug-in (Eclipse CDT) via the Synaptic Package Manager]] <br /> <br/> ---- ===<u>Preparing projects, folders and files</u>=== See [[EclipsePreparingProjects | Preparing projects, folders and files]] <br /> ==== ''Swing''<br /> See [[EclipseBuildSwingProject| How to build the Swing project in Eclipse]] <br /> ==== ''JMX''<br /> See [[EclipseBuildJMXProject| How to build the JMX project in Eclipse]] <br /> ==== ''JConsole''<br /> See [[EclipseBuildJConsoleProject| How to build the JConsole project in Eclipse]] <br /> ==== ''Langtools'' See [[EclipseBuildLangtoolsProject| How to build the Langtools project in Eclipse]] <br /> ==== ''JAXP and JAXWS'' See [[EclipseBuildJAXPandJAXWSProjects| How to build the JAXP and JAXWS projects in Eclipse]] <br /> ==== ''Hotspot''<br /> See [[EclipseBuildHotspotProject| How to build the Hotspot project in Eclipse]] <br /> ==== ''Corba'' See [[EclipseBuildCorbaProject| How to build the Corba project in Eclipse]] <br /> ==== ''JDK – all sub-projects'' See [[EclipseBuildJDK_J2SEInfraBuildProject| How to build the JDK sub-projects in Eclipse]] ---- <br/> === ''Full OpenJDK build Logs'' A successful run of the build results in the output of the following log messages: [https://github.com/neomatrix369/BuildHelpers/blob/master/EclipseProjectsForOpenJDK/Logs/infraBuildVerboseMake.log infraBuildVerboseMake.log] See also zipped file in case the .log file is too big to load and navigate online: [https://github.com/neomatrix369/BuildHelpers/blob/master/EclipseProjectsForOpenJDK/Logs/infraBuildVerboseMake.zip infraBuildVerboseMake.zip] <br/> === ''Full OpenJDK build output: artefacts'' A successful build will result in objects created under <i>~/sources/jdk8_tl/build/<u>linux-x86_64-normal-server-release</u></i>. Note: the directory <i><u>linux-x86_64-normal-server-release</u></i> can vary depending on the CPU, OS and the version of the OpenJDK source used to build the OpenJDK artefacts. <br/> ---- <br/> ===<u>Newly created Eclipse projects</u>=== See [[EclipseNewlyCreatedProjects |Newly created Eclipse projects]] <br /> <br /> === <u>Credits & kudos</u> === 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: [https://groups.google.com/d/msg/adopt-openjdk/dI2_VBI30rM/FM5x88yIjHoJ Netbeans projects for OpenJDK – Martijn Verburg]<br /> [http://jug.ua/2012/07/how-to-build-openjdk-projects-from-netbeans/ Netbeans projects for OpenJDK – Andrii Rodionov]<br />[http://rkennke.wordpress.com/2012/07/27/hacking-hotspot-in-eclipse/ Hacking Hotspot in Eclipse – Roman Kennke]<br /> [http://rgrunber.wordpress.com/2012/04/25/adding-header-files-to-your-cc-project/" Adding include paths to your C/C++ project - Roland]<br /> Sachin Handiekar – Screen-shots and other improvements to the instructions.<br /> Girish Balakrishnan – for reviewing and feedback on the Hotspot instructions.<br /> Jonathan Gibbons (from the OpenJDK team) - Thanks for reviewing the Langtools section.<br /> A number of other online resources and videos have also helped in the process. <center><i>Here's [http://wp.me/p2DZ25-4 the original blog] used to write the wiki instructions.</i></center> ==How to build JTReg in Eclipse (for Ubuntu 12.04 LTS) See [[EclipseProjectForJTReg | How to build JTReg in Eclipse (for Ubuntu 12.04 LTS)]] <br /> <br /> <br /> Back to [[AdoptOpenJDKVMBuild]]
 
 
Close
loading
Please Confirm
Close