OpenJDK Hacking Workshop -- Building Participants will need an x86 machine running some version of Linux (virtualized should be ok). fedora 17/18/19 is recommended. Other Linuxes will probably work so long as you are happy and willing to install missing packages or upgrade package versions as determined by the configure script. See the download instructions for help on obtaining the OpenJDK source code forest. To build the standard x86 JDK8 forest: -------------------------------------- 1) Move to the location where you downloadeded the code $ cd 2) configure the build product you require bash ./configure -with-debug-level=slowdebug --with-boot-jdk=/usr/lib/jvm/java-1.7.0 --with-jvm-variants=server [ n.b. you may need to specify a different path to the boot jdk. For other configuration options see common/autoconf/generated_configure.sh (search for Optional Features). ] [ if the configure script identifies packages which are missing or not up to the correct version then you may need to wrangle with your package manager at this point. ] 3) run make $ make images 4) make libhsdis.so. you will need to ensure you have the relevant binutils source for your Linux distribution available $ cd hotspot/src/share/tools/hsdis $ make BINUTILS= LP64=1 5) copy libhsdis.so into your openjdk tree $ cp build/linux-amd64/hsdis-amd64.so /jdk8/build/linux-x86_64-normal-server-slowdebug/images/j2sdk-image/jre/lib/amd64 To build the aarch64 JDK8 forest: --------------------------------- 1) Move to the location where you downloadeded the code $ cd 2) use the pre-canned script to configure the build product n.b. it should ensure that you have downloaded the sim and binutils code in adjacent directories to the OpenJDK tree. bash ./sim_configure [ n.b. you may need to specify a different path to the boot jdk. For other configuration options see common/autoconf/generated_configure.sh (search for Optional Features). ] [ if the configure script identifies packages which are missing or not up to the correct version then you may need to wrangle with your package manager at this point. ] 3) use the pre-canned script to run make. n.b. it should ensure that the sim and hsdis code in is also built and installed in the correct location. $ bash sim_compile