Issues

Select view

Select search mode

 
50 of 112

shutdown.bat cannot run without JAVA_HOME set

Fixed

Description

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

Details

Assignee

Reporter

Fix versions

Affects versions

Components

Priority

Created April 19, 2016 at 10:40 PM
Updated January 30, 2023 at 6:23 PM
Resolved January 30, 2023 at 6:23 PM

Activity

Jukka RahkonenJanuary 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 RahkonenApril 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.

Flag notifications