I have installed GeoServer by:

But it won't start:

The JAVA_HOME environment variable is not defined correctly. Please install Java or, if present but not in the path, set this environment variable via the following command: set JAVA_HOME=[path to Java]

What am I missing?

enter image description here


You set the path one step too deep.

The example path in the error message set JAVA_HOME=C:\Program Files\Java\jdk8 gives a hint and if you open the startup.bat file with a text editor you will see a line

if not exist "%JAVA_HOME%\bin\java.exe" goto badJava.

Remove \bin from your JAVA_HOME and GeoServer will start.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.