[Geoserver-users] problem running GeoServer RC5 as a Windows service

I am having problems setting up GeoServer to run as a service on a Windows Server 2003 machine.

For me, the JAVA_HOME environment variable did not exist, so I had to add that manually. Not sure if this is normally set with the JDK or not. I also moved the GEOSERVER_DATA_DIR variable to the system variables because I saw in another post to this list something about that solving a problem.

After all that, it still doesn’t work. Starting and stopping GeoServer directly works fine. Any suggestions to get this moving again?

C:\Program Files\GeoServer 1.4.0-RC5>wrapper.exe -c ./bin/wrapper/wrapper.conf

STATUS | wrapper | 2006/12/11 11:51:51 | → Wrapper Started as Console
STATUS | wrapper | 2006/12/11 11:51:51 | Launching a JVM…
INFO | jvm 1 | 2006/12/11 11:51:51 | java.lang.NoClassDefFoundError: Files\GeoServer
INFO | jvm 1 | 2006/12/11 11:51:51 | Exception in thread “main”
ERROR | wrapper | 2006/12/11 11:51:51 | JVM exited while loading the application.

Thanks,
Richard

On 12/11/06, Richard Matsunaga <richard.matsunaga@anonymised.com> wrote:

For me, the JAVA_HOME environment variable did not exist, so I had to add
that manually. Not sure if this is normally set with the JDK or not. I

Did you quote it correctly?

INFO | jvm 1 | 2006/12/11 11:51:51 | java.lang.NoClassDefFoundError:
Files\GeoServer

This implies something is wrong with either your java home or classpath:
If C:\Program Files\GeoServer isn't quoted, it might end up doing
other things than you want.

Pieter
--
http://pitr.net/