java -server option not working

Hi,

I am trying to run my java application (Windows XP, 2003) in "server mode" by using the -server option but I am getting this error -

C:\>java -server

Error: no `server' JVM at `C:\Program Files\Java\j2re1.4.2_05\bin\server\jvm.dll'.

The server jvm.dll is located in C:\j2sdk1.4.2_05\jre\bin\server.

How can I fix this?

I have JAVA_HOME set to C:\j2sdk1.4.2_05. I also have C:\j2sdk1.4.2_05\bin in the PATH.

- vineet

[473 byte] By [vineetb] at [2007-9-30 17:30:22]
# 1
You must have the JRE in your PATH before the SDK. Put the SDK first in your PATH.
cknelsen at 2007-7-6 13:53:24 > top of Java-index,Administration Tools,Sun Connection...
# 2
> You must have the JRE in your PATH before the SDK. Put> the SDK first in your PATH.Any ideas where I can change the JRE path?This was never a problem in the previous releases (1.4.2 and below).Or maybe I am doing something wrong?- vineet
vineetb at 2007-7-6 13:53:24 > top of Java-index,Administration Tools,Sun Connection...
# 3

> > You must have the JRE in your PATH before the SDK.

> Put

> > the SDK first in your PATH.

>

> Any ideas where I can change the JRE path?

> This was never a problem in the previous releases

> (1.4.2 and below).

> Or maybe I am doing something wrong?

>

> - vineet

This isn't the solution. Just copy the \server\ directory from the SDK to the JRE (thus creating 2 \server\ directories, just like there are already 2 \client\ directories.) This is per Sun's instructions.

ChuckBing at 2007-7-6 13:53:24 > top of Java-index,Administration Tools,Sun Connection...