Instead, I recommended that the Java install directory be changed to something like: Where to install Java on Windows?īy default, Java installs into a subdirectory of C:\Program Files. The space between the words Program and Files can sometimes cause errors in scripts, which is why I recommend against installing Java in this folder.
When you setup Java on Windows, change the installation folder and choose to set JAVA_HOME.