Hi Alaina,

There are a few things here.

The java version command just needs the one dash.

C:\Users\russell.grew>java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

The GeoServer program is telling you that the GEOSERVER_HOME environment 
variable needs to be defined. It is this process 
https://docs.geoserver.org/latest/en/user/datadirectory/setting.html but with 
GEOSERVER_HOME pointing to the folder where you have unzipped the platform 
independent binary. If you are comfortable with the command line you can also 
use the set command per your screenshot, and then run startup.bat from the same 
console. I note that when I run the batch file this variable gets set 
automatically. For some reason this isn't happening on your system. Perhaps 
related to user permissions.

Good luck.

If you are not the intended recipient of this email, please notify us 
immediately and be aware that any disclosure, copying, distribution or use of 
the contents of this information is prohibited.
From: Alaina Mallette <ala...@tughill.org>
Sent: Tuesday, 28 September 2021 6:34 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Unable to Install GeoServer

Good afternoon, GeoServer support,

I have tried for several days to download and open GeoServer without any luck.

I am trying to download GeoServer 2.19.2 Platform Independent Binary following 
the instructions online and this YouTube 
tutorial<https://www.youtube.com/watch?v=F7dDVD8WzKo>, in which my process 
erred at the 5:45 minute mark. Essentially, I was able to download the package. 
I have Java v. 8:
[cid:image005.png@01D7B43C.B1B781F0]
But, when I run the command to check with version of Java I am using, I receive 
this result:
C:\Users\user>java --version
Unrecognized option: --version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
So, I am thinking I may have a Java issue, but am unaware how to resolve it.

Secondly, when I try and open the localhost:8080/geoserver on Microsoft Edge, I 
get this error message:
Hmmm... can't reach this pagelocalhost refused to connect.
Try:

Search the web for localhost
Checking the connection
Checking the proxy and the firewall
Should I be using a different browser?

I tried running the GeoServer batch process as an administrator and I receive 
this result:
Welcome to GeoServer!

JAVA_HOME: C:\Program Files\Java\jre1.8.0_301

The GEOSERVER_HOME environment variable is not defined.
This environment variable is needed to run this program.

Set this environment variable via the following command:
   set GEOSERVER_HOME=[path to GeoServer]
Example:
   set GEOSERVER_HOME=C:\Program Files\GeoServer

Startup of GeoServer was unsuccessful.

Press any key to continue . . .
I follow those instructions to ser the GeoServer home to the main folder, but 
that doesn't seem to fix the issue. I tried this process twice, once in the 
Program Files folder for x86 and once in the main C: drive. Both gave me the 
same error message.

I will try again tomorrow, but I really am hoping someone from GeoServer might 
be able to assist me in getting the platform up and running. Thank you, in 
advance, for any support you can provide.

Regards,
Alaina


Alaina Mallette

Planner

NYS Tug Hill Commission

____________________

ala...@tughill.org<mailto:ala...@tughill.org>

office, (315) 785-2387

cell, (315) 778-0571

____________________
[cid:image006.png@01D7B43C.B1B781F0]
_______________________________________________
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


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to