The startup.bat has been updated to detect and use the system java (if JAVA_HOME is not set). The shutdown.bat file has not had this fix.
This provides an awkward setup where you can start geoserver, but not stop it.
Environment
None
Activity
Jukka Rahkonen January 24, 2023 at 9:59 AM
With Geoserver 2.22.1 this almost works. My java is here
The shutdown.bat runs “where” if JAVA_HOME is not set. It saves the output into variable RUN_JAVA, but the string truncates and the value is just RUN_JAVA=C:\Program. The line that saves the truncated path is for /f %%i in ('where java') do set RUN_JAVA=%%i
Fix suggested in
Jukka Rahkonen April 20, 2016 at 4:19 AM
Users are not without workarounds because you can stop Geoserver by hitting Ctrl-C in the console window or by closing the console by pressing the (X) in the top-right corner.
The startup.bat has been updated to detect and use the system java (if JAVA_HOME is not set). The shutdown.bat file has not had this fix.
This provides an awkward setup where you can start geoserver, but not stop it.