==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>:
JAXP and JAXWS
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
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)].
===<u>Installing Eclipse for Java via the Synaptic Package Manager</u>===
See [[InstallEclipseForJava] | Installing Eclipse for Java via the Synaptic Package Manager
===<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]]
===<u>Preparing projects, folders and files</u>===
See [[EclipsePreparingProjects | Preparing projects, folders and files]]
==== ''Swing''<br />
See [[EclipseBuildSwingProject| How to build the Swing project in Eclipse]]
==== ''JMX''<br />
See [[EclipseBuildJMXProject| How to build the JMX project in Eclipse]]
==== ''JConsole''<br />
See [[EclipseBuildJConsoleProject| How to build the JConsole project in Eclipse]]
See [[EclipseBuildLangtoolsProject| How to build the Langtools project in Eclipse]]
==== ''JAXP and JAXWS''
See [[EclipseBuildJAXPandJAXWSProjects| How to build the JAXP and JAXWS projects in Eclipse]]
==== ''Hotspot''<br />
See [[EclipseBuildHotspotProject| How to build the Hotspot project in Eclipse]]
See [[EclipseBuildCorbaProject| How to build the Corba project in Eclipse]]
==== ''JDK – all sub-projects''
See [[EclipseBuildJDK_J2SEInfraBuildProject| 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:
See also zipped file in case the .log file is too big to load and navigate online:
=== ''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.
===<u>Newly created Eclipse projects</u>===
See [[EclipseNewlyCreatedProjects |Newly created Eclipse projects]]
=== <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)]]
Back to [[AdoptOpenJDKVMBuild]]