
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. If you run your own server on your PC or something like a VPS, you need to either uninstall your current Java version and install Java 17, or install Java 17 alongside your existing Java installation and update the system path for it or specify the direct java binary path when starting your Minecraft server.When you setup Java on Windows, change the installation folder and choose to set JAVA_HOME. If you have a server with another company, you need to contact them to fix it.

Minecraft 1.18, 1.18.1 and higher released in 2021 require Java 17 to run.

If you get the following error when starting your Minecraft server it's due to you not having the correct Java version installed or being used.
