rJavaEnv::java_check_version_rjava()
Using current session's JAVA_HOME: C:\Program Files\Microsoft\jdk-21.0.4.7-hotspot
✖ Failed to retrieve Java version.
[1] FALSE
rJavaEnv::java_check_version_cmd()
JAVA_HOME: C:\Program Files\Microsoft\jdk-21.0.4.7-hotspot
Java path: C:\PROGRA~1\MICROS~4\JDK-21~1.7-H\bin\java.exe
Java version: "OpenJDK 64-Bit Server VM warning: The Windows job object has enabled multiple processor groups (2) but
the UseAllWindowsProcessorGroups flag is off. Some processors might not be used. openjdk version \"21.0.4\" 2024-07-16
LTS OpenJDK Runtime Environment Microsoft-9889606 (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM Microsoft-9889606 (build
21.0.4+7-LTS, mixed mode, sharing)"
Error in if (major_java_ver == "1") { : argument is of length zero
4.
Originally posted by @luyuliu in https://github.com/ipeaGIT/r5r/issues/399#issuecomment-2365398688