Update java version for DEFAULT_JAVA_HOME.
@@ -403,12 +403,12 @@ function(vespa_use_default_java_home)
if (DEFINED JAVA_HOME)
return()
endif()
- set(DEFAULT_JAVA_HOME "/usr/lib/jvm/java-11-openjdk")
+ set(DEFAULT_JAVA_HOME "/usr/lib/jvm/java-17-openjdk")
if(APPLE)
execute_process(COMMAND "/usr/libexec/java_home" OUTPUT_VARIABLE DEFAULT_JAVA_HOME)
string(STRIP "${DEFAULT_JAVA_HOME}" DEFAULT_JAVA_HOME)
- elseif(VESPA_OS_DISTRO STREQUAL "ubuntu")
- set(DEFAULT_JAVA_HOME "/usr/lib/jvm/java-11-openjdk-amd64" PARENT_SCOPE)
+ elseif(VESPA_OS_DISTRO STREQUAL "ubuntu" OR VESPA_OS_DISTRO STREQUAL "debian")
+ set(DEFAULT_JAVA_HOME "/usr/lib/jvm/java-17-openjdk-amd64" PARENT_SCOPE)
endif()
if(COMMAND vespa_use_specific_java_home)
vespa_use_specific_java_home()
