jni: do not resolve java paths
@@ -3,11 +3,6 @@ include (LibAddBinding)
include (SafeCheckSymbolExists)
if (DEPENDENCY_PHASE)
- if (DEFINED ENV{JAVA_HOME} AND NOT $ENV{JAVA_HOME} STREQUAL "")
- # resolve full path to avoid invalid RPATH (e.g. on Fedora 35)
- get_filename_component (JAVA_HOME $ENV{JAVA_HOME} REALPATH)
- endif ()
-
if (APPLE)
if (NOT DEFINED JAVA_HOME)
execute_process (
