Last active
October 22, 2023 08:33
-
-
Save cjjavellana/dd59add132fa5342673ad01620285f0e to your computer and use it in GitHub Desktop.
Setting up an OpenJDK Development Ubuntu VM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update | |
# The openjdk is used as a bootstrap jdk, adjust your jdk version accordingly depending on the | |
# jdk you're trying to build from source | |
sudo apt install -y gdb make autoconf unzip zip openjdk-17-jdk gcc g++ libx11-dev libxext-dev \ | |
libxrender-dev libxrandr-dev libxtst-dev libxt-dev libcups2-dev libfontconfig1-dev libasound2-dev | |
git clone --depth 1 -b jdk-17+8 https://github.com/openjdk/jdk.git | |
cd jdk | |
bash configure --with-debug-level=slowdebug --with-boot-jdk=/usr/lib/jvm/java-1.17.0-openjdk-amd64 --enable-warnings-as-errors=no | |
JAVA_WARNINGS_ARE_ERRORS= make images |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Building the plugin for viewing the disassembly generated by the JIT
https://www.morling.dev/blog/building-hsdis-for-openjdk-15/