[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, 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

Outlook-qwvkbxki.png

···

Alaina Mallette

Planner

NYS Tug Hill Commission


alaina@anonymised.com

office, (315) 785-2387

cell, (315) 778-0571


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™ SE Runtime Environment (build 1.8.0_201-b09)

Java HotSpot™ 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.

image.png

Outlook-qwvkbxki.png

···

From: Alaina Mallette Alaina@anonymised.com
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, 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


alaina@anonymised.com

office, (315) 785-2387

cell, (315) 778-0571


On Tuesday, 28 September 2021 6:33:36 AM AEST Alaina Mallette 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&gt;, 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:071f1f22-22ce-499e-b0d9-1bfe80baabf4]
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.

The option was -version (with a single dash, not two dashes) in Java 8.

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?

Its probably not the browser. Its probably not running.

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'm not familiar with running it on Windows, but maybe you didn't set the
environment variable correctly. If you go to the command prompt, does
echo %GEOSERVER_HOME%
show the expected path? Is that where geoserver is really installed?
Does that setting survive a reboot?

If it doesn't, try "edit environment variable" in the Start menu. Make sure
you're setting it as a System variable.

Brad

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).

image.png

Outlook-qwvkbxki.png

···


Jody Garnett

Hi Jody,

Thank you for your response. That link was great, now I have JRE correctly installed!

C:\Users\user>java --version
openjdk 11.0.12 2021-07-20
OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (build 11.0.12+7, mixed mode)

​Unfortunately, my local host is not recognizing GeoServer:

HTTP ERROR 503 Service Unavailable
URI: /geoserver/
STATUS: 503
MESSAGE: Service Unavailable
SERVLET: -
Powered by Jetty:// 9.4.36.v20210114

​I tried both Microsoft Edge and Firefox browsers with the same result/error message. Any additional advice

Regarding membership, I received an email stating:

Your mail to ‘Geoserver-users’ with the subject

Unable to Install GeoServer

Is being held until the list moderator can review it for approval.

The reason it is being held:

Post by non-member to a members-only list

Either the message will get posted to the list, or you will receive
notification of the moderator’s decision. If you would like to cancel
this posting, please visit the following URL:…

​Since this is a members-only list, I was wondering what I/my agency can do to become a member of GeoServer. We intend to host a WFS on GeoServer for the foreseeable future, so we would like to be more connected to GeoServer resources.

Regards,
Alaina

image.png

Outlook-qwvkbxki.png

Outlook-qwvkbxki.png

···

Alaina Mallette

Planner

NYS Tug Hill Commission


alaina@…11100…

office, (315) 785-2387

cell, (315) 778-0571



From: Jody Garnett <jody.garnett@…84…>
Sent: Tuesday, September 28, 2021 9:52 AM
To: Alaina Mallette <Alaina@…11100…>
Cc: geoserver-users@lists.sourceforge.net geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Unable to Install GeoServer

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 <Alaina@…11100…> 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, 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


alaina@…11100…

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:

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

You will need to sign up to the user list :slight_smile:

image.png

Outlook-qwvkbxki.png

Outlook-qwvkbxki.png

···


Jody Garnett