// At this point, we require OpenJDK 8.
readonly JNI_DIR="/usr/lib/jvm/java-8-openjdk-amd64/include"
readonly JNI_DIR_LINUX="/usr/lib/jvm/java-8-openjdk-amd64/include/linux"
But java licensing changes have disabled 'open-jdk-8 version' and 'ppa' have discontinued its support.
Tried to use official jdk8 from oracle's website too.
So the build_deps.sh fails while running due to this.
The error eventually leads to "jni.h not found"
Workaround used
Downloaded 'OpenJDK-11' and renamed it to 'java-8-openjdk-amd64' to make it work, so build_dep.sh gets the correct path.
The build_dep.sh mentions
// At this point, we require OpenJDK 8. readonly JNI_DIR="/usr/lib/jvm/java-8-openjdk-amd64/include" readonly JNI_DIR_LINUX="/usr/lib/jvm/java-8-openjdk-amd64/include/linux"
But java licensing changes have disabled 'open-jdk-8 version' and 'ppa' have discontinued its support. Tried to use official jdk8 from oracle's website too. So the build_deps.sh fails while running due to this. The error eventually leads to "jni.h not found"
Workaround used
Downloaded 'OpenJDK-11' and renamed it to 'java-8-openjdk-amd64' to make it work, so build_dep.sh gets the correct path.