You may need to add java to your path? That is what the command line
example is trying to check.

Note we have been recommending https://adoptium.net/ (formally
AdoptOpenJDK) because oracle changed their license terms).




--
Jody Garnett


On Mon, 27 Sept 2021 at 14:04, Alaina Mallette <ala...@tughill.org> wrote:

> 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:
>
> 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
>
> office, (315) 785-2387
>
> cell, (315) 778-0571
>
> ____________________
>
> _______________________________________________
> 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
>
_______________________________________________
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