I updated the Java on my windows machine, and later tried to open up my GeoServer. To my surprise, it was not starting. Since GeoServer is built upon Geotools, which is an open-source Java toolkit, it depends upon your Java Runtime Environment better known as JRE. After the update of the JRE, ‘Start GeoServer’ is not working and hence I cannot access GeoServer on its port 8080. To run GeoServer again, do:
- Open PATH system variable
- Find the system variable named: JAVA_HOME. You can see its value as being the old version before the update. Provide in the correct version for the JAVA_HOME.
- Next step is to find your
startupfile for your GeoServer and update the JRE path there. Normally this is available under
binfolder of your GeoServer installation directory. For me, this is
C:\Program Files (x86)\GeoServer x.xx.x\binwhere GeoServer x.xx.x is the version number. Right click and open the
startup.batfile with your favorite text editor. You can see the startup script makes a call to the JRE. Change this to the correct path of your JRE. Now save the file and you can start using GeoServer again.
- Similarly, make the change in the
shutdown.batwhich is also available under the
binfolder of your GeoServer installation directory. Provide the proper path to the JRE similarly as mentioned above.