Hi Charles,

Thanks, with your edit the startup.bat finds the system java and Geoserver 
starts with it.

Welcome to GeoServer!

The JAVA_HOME environment variable is not defined, trying to use System Java
Using System Java at:
   C:\Program Files\AdoptOpenJDK\jdk-11.0.5.10-hotspot\bin\java.exe

I will make a PR for including the fix into next releases.

-Jukka-

Lähettäjä: Charles Roberts <[email protected]>
Lähetetty: tiistai 2. kesäkuuta 2020 21.38
Vastaanottaja: Rahkonen Jukka (MML) <[email protected]>; 
'Jody Garnett' <[email protected]>; 'GeoServer' 
<[email protected]>; 'GeoServer Users' 
<[email protected]>
Aihe: RE: [Geoserver-users] [Geoserver-devel] GeoServer 2.17.1 pre-release 
testing


Jukka Rahkonen,

If you are using the script without setting JAVA_HOME, I think the script has 
an error.

To fix it: add the argument "tokens=*" to the for command, which I think is 
attempting to remove the spaces from the system path entry for java.

Change:
for /f %%i in ('where java') do set RUN_JAVA=%%i
To:
for /f "tokens=*" %%i in ('where java') do set RUN_JAVA=%%i

Regards,
Charles




From: Rahkonen Jukka (MML) 
<[email protected]<mailto:[email protected]>>
Sent: Tuesday, June 2, 2020 3:35 AM
To: Jody Garnett <[email protected]<mailto:[email protected]>>; 
GeoServer 
<[email protected]<mailto:[email protected]>>;
 GeoServer Users 
<[email protected]<mailto:[email protected]>>
Subject: Re: [Geoserver-users] [Geoserver-devel] GeoServer 2.17.1 pre-release 
testing

Hi,

I tried bin-zip on Windows with Corretto 8. Geoserver starts, all capability 
documents seem to be OK, layer previews as well.

The automatic java detection does not quite work if system has installed java 
into “Program Files” but startup.bat stops after this:

The  JAVA_HOME environment variable is not defined, trying to use System Java
Using System Java at:
   C:\Program

-Jukka Rahkonen-


Lähettäjä: Jody Garnett <[email protected]<mailto:[email protected]>>
Lähetetty: tiistai 2. kesäkuuta 2020 5.07
Vastaanottaja: GeoServer 
<[email protected]<mailto:[email protected]>>;
 GeoServer Users 
<[email protected]<mailto:[email protected]>>
Aihe: [Geoserver-devel] GeoServer 2.17.1 pre-release testing

GeoServer 2.17.1 pre-release artifacts are available for testing:

https://build.geoserver.org/view/release/job/geoserver-release/5/artifact/distribution/2.17.1/

Please try this out with your data, and reply with how it goes (including the 
version of Java you are using, and if you are running on linux, macOS, or 
windows user). We are working from a new build server and can really use a hand 
ensuring this has been packaged correctly.

We are including the user list in this call for testing as a community building 
exercise. Open source is a team sport that can be enjoyed at a social distance, 
and this is your throw-in!
--
Jody Garnett
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to