Build and packaging script for building OpenJDK, used for FoldCraftLauncher.
This branch is used to compile JRE 21.
Use Android NDK to build.
- Download Android NDK r21.
- Warning: Do not attempt to build use newer or older NDK, it will lead to compilation errors.
Run in this directory:
export BUILD_FREETYPE_VERSION=[2.6.2/.../2.10.0] # default: 2.10.0
export JDK_DEBUG_LEVEL=[release/fastdebug/slowdebug] # default: release
export JVM_VARIANTS=[client/server] # default: server
# Setup NDK, run once
./extract_ndk.sh
# Get boot JDK, JDK 20 is needed when building JDK 21.
./get_boot_jdk.sh
# Get CUPS, Freetype and build Freetype
./get_libs.sh
./build_libs.sh
# Clone JDK, run once
./clone_jdk.sh
# Configure JDK and build
./build_jdk.sh
# Pack the built JDK
./remove_jdk_debug_info.sh
./tar_jdk.sh