Hi,
Why does SQLcl on Windows not use JAVA_HOME as the version of Java to use if it's set? I assumed it did this or used the PATH initially to identify the location of java.exe to use.
Looking at the debug output when running SQLcl I can see it checks the following:
Paths:
..\..\jdk\jre\bin\java.exe
Registry keys:
64-bit search: SOFTWARE\JavaSoft\Java Runtime Environment...
32-bit search: SOFTWARE\JavaSoft\Java Runtime Environment...
64-bit search: SOFTWARE\JavaSoft\Java Development Kit...
32-bit search: SOFTWARE\JavaSoft\Java Development Kit...
64-bit search: SOFTWARE\JavaSoft\JRE...
32-bit search: SOFTWARE\JavaSoft\JRE...
64-bit search: SOFTWARE\JavaSoft\JDK...
32-bit search: SOFTWARE\JavaSoft\JDK...
64-bit search: SOFTWARE\IBM\Java Runtime Environment...
32-bit search: SOFTWARE\IBM\Java Runtime Environment...
64-bit search: SOFTWARE\IBM\Java Development Kit...
32-bit search: SOFTWARE\IBM\Java Development Kit...
64-bit search: SOFTWARE\IBM\Java2 Runtime Environment...
32-bit search: SOFTWARE\IBM\Java2 Runtime Environment...
64-bit search: SOFTWARE\IBM\Java Development Kit...
32-bit search: SOFTWARE\IBM\Java Development Kit...
But never JAVA_HOME or PATH, why?
Incidentally this caused me quite a bit of head scratching to work out why my installation was not working.
David.