Last active
April 14, 2025 22:36
-
-
Save JohnTortugo/87d5df2db4a96a9bc2a2b25f4d7fdb58 to your computer and use it in GitHub Desktop.
Setup to build OpenJDK on Amazon Linux2
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 yum install -y alsa-lib-devel cups-devel fontconfig-devel | |
sudo yum install -y libXtst-devel libXt-devel libXrender-devel libXrandr-devel libXi-devel | |
sudo yum install -y autoconf git make | |
sudo yum groupinstall -y "Development Tools" | |
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_aarch64_linux_hotspot_24_32-ea.tar.gz" | |
tar -xvf "OpenJDK24U-jdk_aarch64_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