Skip to content

Instantly share code, notes, and snippets.

@cjjavellana
Last active October 22, 2023 08:33
Show Gist options
  • Save cjjavellana/dd59add132fa5342673ad01620285f0e to your computer and use it in GitHub Desktop.
Save cjjavellana/dd59add132fa5342673ad01620285f0e to your computer and use it in GitHub Desktop.
Setting up an OpenJDK Development Ubuntu VM
#!/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
@cjjavellana
Copy link
Author

Building the plugin for viewing the disassembly generated by the JIT
https://www.morling.dev/blog/building-hsdis-for-openjdk-15/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment