Skip to main content
Last updated January 08, 2013 21:44, by neomatrix369
Feedicon  
__TOC__ ===== Building Hotspot via the command-line interface (InfraBuild) <br/> ====== Configuration Ensure the below environment variables are added to the .bashrc file: LANG=C PRODUCT_HOME=/home/openjdk/sources/jdk8_tl/build/<u>linux-x64-normal-server-release/images</u>/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 <b>--with-boot-jdk=/usr/lib/jvm/java-7-openjdk-amd64</b> parameter when calling the <b>configure</b> bashscript, for e.g. <br/> 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 <i> --with-boot-jdk</i> parameter may vary and is specific to your linux environment.<br/> 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 <br/> ====== 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 <br/> For a clean build perform the below action at the command-line: make clean hotspot NEW_BUILD=true &amp;&gt; hotspotInfraBuild.log <br/> For an incremental build perform the below action at the command-line: make hotspot NEW_BUILD=true &amp;&gt; hotspotInfraBuild2ndPass.log <br/> For generating Debug Class files when building Hotspot perform the below action at the command-line: make hotspot NEW_BUILD=true DEBUG_CLASSFILES=true &amp;&gt; hotspotInfraBuild-DEBUG_CLASSFILES.log <br/> ====== Logs See [[EclipseBuildHotspotProject#Build_messages&#58;_logs | Build messages: logs]] <br/> ====== Artefacts See [[EclipseBuildHotspotProject#Build_output&#58;_artefacts | Build output: artefacts]] <br/> ===== Building Hotspot via the command-line interface (Old Build) See [[BuildHotspotCLIOldBuild] | Building Hotspot via the command-line interface (Old Build)]] <br/> ===== References See [[EclipseBuildHotspotProject#References | EclipseBuildHotspotProject: References]] <br /> ===== Next Step <br /> Back to [[EclipseBuildHotspotProject#Hotspot | How to build the Hotspot project in Eclipse]]
 
 
Close
loading
Please Confirm
Close