>> Java.exe -server lives in the JDK only.
>
>1) No.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
>>> Java.exe -server lives in the JDK only.
>> 1) No.
[quoted text clipped - 4 lines]
> the system32 version of java.exe might be smart enough to use the JDK
> version if you use -server.
As I showed then in the stuff you did not quote, then the java.exe
in my JRE does understand (or at least claim to) -server.
It is also very simple to use fc to verify that the java.exe in the
JRE bin and the JDK bin are identical.
Arne
Roedy Green - 29 Mar 2008 22:05 GMT
>It is also very simple to use fc to verify that the java.exe in the
>JRE bin and the JDK bin are identical.
that means little. They look in the registry ,load dlls, figure out
which JDK/JRE to use etc. So the exact same executable can behave
differently in different contexts.
The most obvious example would be using an java.exe in a JRE uses that
JRE where the one in system32 looks in the registry ot decide which
JRE to use then loads that one.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Roedy Green - 29 Mar 2008 22:26 GMT
>As I showed then in the stuff you did not quote, then the java.exe
>in my JRE does understand (or at least claim to) -server.
I just did an experiment
[F:\Program Files\Java\jdk1.6.0_05\jre\bin]java -server -jar
E:\com\mindprod\converter\converter.jar
which would have used the jre java.exe and it worked happily. You are
correct. Now the question is, is this behaviour new in 1.6, or was it
always thus and something threw me off earlier.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Arne Vajhøj - 30 Mar 2008 00:33 GMT
>> As I showed then in the stuff you did not quote, then the java.exe
>> in my JRE does understand (or at least claim to) -server.
[quoted text clipped - 7 lines]
> correct. Now the question is, is this behaviour new in 1.6, or was it
> always thus and something threw me off earlier.
C:\Program Files\Java\jre1.5.0\bin>java -?
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
C:\Program Files\Java\j2re1.4.2_02\bin>java -?
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
C:\Program Files\Java\j2re1.4.1_02\bin>java -?
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
Arne