

That’s why it is highly recommended to allow the install wizard to configure the Java Path. This makes it very easy for developers to use JDK tools including the Java compiler and the Java Shell.

When the installer configures the Java PATH environment variable, all of the utilities that are part of the JDK can be invoked by name in a DOS prompt or in PowerShell. Java setup and install options for Windows Install optionĪny custom folder without a space or non-text character 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.
