java -server option

How does one use the -server option for the jvm? When ever I have tried using it reports the error: "Error: no 'server' JVM at C:\Program Files\Java\jre1.5.0_08\bin\server\jvm.dll"

I'm confused by the error message, because I thought the jdk's binary java command used the jre located within the jdk folder.

[324 byte] By [ljr.2600a] at [2007-10-3 2:35:07]
# 1

> I'm confused by the error message, because I thought

> the jdk's binary java command used the jre located

> within the jdk folder.

And generally you would be right as long as JAVA_HOME points at a JDK installation. Are you sure you are running the JDK binary?

Brian

brian@cubik.caa at 2007-7-14 19:34:04 > top of Java-index,Java Essentials,New To Java...
# 2

Usually the default jvm is the one in the JRE - to use the JDK's jvm you need either to execute the java command from the JDK's /bin/ or /jre/bin/ directories, or us the full path to either one of these 2 locations that contain the java.exe file.

To enable the -server option for a "naked" (default) java command, copy the /server/ directory and contents from the JDK to the JRE. (This is a Sun recommendation.)

ChuckBinga at 2007-7-14 19:34:04 > top of Java-index,Java Essentials,New To Java...