Last active
July 20, 2025 03:12
-
-
Save JohnTortugo/a3105d929589f50610399bb6abf6851a to your computer and use it in GitHub Desktop.
Setup & Build OpenJDK on Ubuntu x64
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 install -y libcups2-dev libfontconfig1-dev | |
sudo apt install -y autoconf git make unzip zip | |
sudo apt install -y build-essential libasound2-dev | |
sudo apt-get install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev | |
sudo mkdir /wf/ | |
sudo chgrp -R ec2-user /wf/ | |
sudo chown -R ec2-user /wf/ | |
mkdir /wf/tools/ | |
cd /wf/tools/ | |
wget "https://builds.shipilev.net/jtreg/jtreg-7.5.1%2B1.zip" | |
unzip "jtreg-7.5.1+1.zip" | |
wget "https://github.com/adoptium/temurin24-binaries/releases/download/jdk-24%2B32-ea-beta/OpenJDK24U-jdk_x64_linux_hotspot_24_32-ea.tar.gz" | |
tar -xvf "OpenJDK24U-jdk_x64_linux_hotspot_24_32-ea.tar.gz" | |
cd /wf/ | |
git clone https://github.com/JohnTortugo/jdk.git tortugo-jdk | |
cd tortugo-jdk | |
bash configure --with-boot-jdk=/wf/tools/jdk-24+32 --with-jtreg=/wf/tools/jtreg --with-debug-level=slowdebug | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment