On Windows, the JVM is not found sometimes if the location of it is not in the PATH environment variable (see https://en.wikipedia.org/wiki/PATH_(variable) for more about the path environment variable). To fix this, we need to write a function that searches possible locations for the JVM(including the PATH environment variable). For instance, a common location for the JVM on windows machines is C:\Program Files\Java\jvm-<version>\bin.
On Windows, the JVM is not found sometimes if the location of it is not in the
PATHenvironment variable (see https://en.wikipedia.org/wiki/PATH_(variable) for more about the path environment variable). To fix this, we need to write a function that searches possible locations for the JVM(including the PATH environment variable). For instance, a common location for the JVM on windows machines isC:\Program Files\Java\jvm-<version>\bin.