Hi, I think there is a bug in nbi's JavaUtils.c, line 125 (Function getJavaVersionFromString), when it's used to unpack JVM of version 10 or above such as OpenJDK11. This will affect netbeans launcher on windows (nlw.exe) and thus need to have it rebuild after code fix.
The current codes' assumption is that Java version (java -version) show MAJOR.MINOR and the MAJOR only has one digit (e.g. 1.8, 1.7 etc). Codes use string[1] to check "." first. For OpenJDK11, the java -version will show 11.X... and thus the dot "." will not appear at the string[1]. As a result, result code of "ERROR_OK" will not be assigned and JVM unpacking will fail. I have never committed codes to netbeans myself and thus will leave this for someone more familiar with the code committing process to review first and then commit if necessary. Hope this will help those whom may need NetBeans launcher to unpack JVM during installation process on windows. Thanks and regards, MH ----------------------------------------------- SPISim: [www.spisim.com] EDA in Signal, Power Integrity and SIMulation -----------------------------------------------
