Skip to main content
Last updated January 08, 2013 21:44, by neomatrix369
Feedicon  
Building Hotspot via the command-line interface (InfraBuild)


Configuration

Ensure the below environment variables are added to the .bashrc file:

 
 LANG=C
 PRODUCT_HOME=/home/openjdk/sources/jdk8_tl/build/linux-x64-normal-server-release/images/j2sdk-image
 ZIP_DEBUGINFO_FILES=0
 

We do not need to set the ALT_BOOTDIR or ALT_JDK_IMPORT_PATH environment variables, instead use the --with-boot-jdk=/usr/lib/jvm/java-7-openjdk-amd64 parameter when calling the configure bashscript, for e.g.

 
 cd ~/sources/jdk8_tl//common/makefiles 
 bash ../autoconf/configure --with-boot-jdk=/usr/lib/jvm/java-7-openjdk-amd64/
 

run the above command from within the ~/sources/jdk8_tl/common/makefiles folder. The jdk or jre path specified with the --with-boot-jdk parameter may vary and is specific to your linux environment.

To enable generation of Debug Class files for every make command hereafter, perform the below:

 
 cd ~/sources/jdk8_tl//common/makefiles 
 bash ../autoconf/configure --with-boot-jdk=/usr/lib/jvm/java-7-openjdk-amd64/ JAVAC_FLAGS=-g
 


Building

Perform the below instructions to build Hotspot using the Infrabuild system (ensure the necessary enviroment variables are set and the ALT_... environment variables are unset - see the sub-heading InfraBuild above. And the ~/.bashrc file source-ed before proceeding)

 
 source ~/.bashrc
 


For a clean build perform the below action at the command-line:

 
 make clean hotspot NEW_BUILD=true &> hotspotInfraBuild.log
 


For an incremental build perform the below action at the command-line:

 
 make hotspot NEW_BUILD=true &> hotspotInfraBuild2ndPass.log
 


For generating Debug Class files when building Hotspot perform the below action at the command-line:

 
 make hotspot NEW_BUILD=true DEBUG_CLASSFILES=true &> hotspotInfraBuild-DEBUG_CLASSFILES.log
 


Logs

See Build messages: logs


Artefacts

See Build output: artefacts


Building Hotspot via the command-line interface (Old Build)

See Building Hotspot via the command-line interface (Old Build)


References

See EclipseBuildHotspotProject: References


Next Step

Back to How to build the Hotspot project in Eclipse

 
 
Close
loading
Please Confirm
Close