Skip to main content
Last updated January 08, 2013 22:44, by neomatrix369

JDK – sub-projects – Old Build

This build depends on successful builds of the Hotspot, JAX, JAXWS, Langtools and Corba packages.

Add the below lines to the file in case it does not already exist:

 ALT_BOOTDIR=/usr/lib/jvm/java-7-openjdk-amd64 \
 ALT_LANGTOOLS_DIST=~/sources/jdk8_tl/langtools/dist \
 ALT_CORBA_DIST=~/sources/jdk8_tl/corba/dist \
 ALT_JAXP_DIST=~/sources/jdk8_tl/jaxp/dist \
 ALT_JAXWS_DIST=~/sources/jdk8_tl/jaxws/dist \
 HOTSPOT_IMPORT_PATH=~/sources/jdk8_tl/hotspot/build/linux-amd64_backup/hotspot/import \
 ALT_HOTSPOT_IMPORT_PATH=~/sources/jdk8_tl/hotspot/build/linux-amd64_backup/hotspot/import \
 HOTSPOT_SERVER_PATH=~/sources/jdk8_tl/build/linux-amd64_backup/hotspot/import/jre/lib/amd64/server \
 ALT_HOTSPOT_SERVER_PATH=~/sources/jdk8_tl/build/linux-amd64_backup/hotspot/import/jre/lib/amd64/server \

Import a project using the Import a project from existing Ant BuildFile option via the New > Project > Other menu option and select ~/sources/jdk8_tl/jdk/make/eclipse/j2se/build.xml file for the j2se project.

Alternatively the whole project can be loaded as a C/C++ project following the same instructions as for the Hotspot project above. The above environment variables settings will be required to be added to the project.

Build the project via the Project > Build Project option and wait for it to finish.

At the moment this project does not build in Eclipse or via the command-prompt – investigations underway.

Once all of these packages are build successfully, close down Eclipse.

For sanity check purposes please ensure that the individual packages / projects build from the command prompt and the OpenJDK project as a whole builds from the command prompt i.e.

cd ~/sources/jdk8_tl/[...project..]/make/
cd ~/sources/jdk8_tl/jdk/make/[...project..]/  
make all
This is to ensure one process hasn't negatively impacted the other projects. For a list of project names refer to the section at the top of page.

Next Step

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

Please Confirm