L
Lew
There is nothing wrong with my installation. Server VM doesn't ship
with JRE. It only comes with full JDK download.
The following is from the readme file in the Sun JDK:
On Microsoft Windows platforms, the JDK includes both
the Java HotSpot(TM) Server VM and Java HotSpot Client VM.
However, the Java SE Runtime Environment for Microsoft Windows
platforms includes only the Java HotSpot Client VM. Those wishing
to use the Java HotSpot Server VM with the Java SE Runtime
Environment may copy the JDK's jre\bin\server folder to a
bin\server directory in the Java SE Runtime Environment. Software
vendors may redistribute the Java HotSpot Server VM with their
redistributions of the Java SE Runtime Environment.
Nevertheless, you will note that the "server VM" is not in your PATH, as I
mentioned. Your own output shows that. The statement that some sort of
"server VM" has to be in the PATH is false.
Only the JDK version of 'java' itself need be in the PATH. IOW, the JDK
version of 'java' is different from the JRE version (on Windows only!). The
JDK 'java' is equally capable of running as a client VM. The distinction is
not "server" vs. "client" but "JDK version" vs. "JRE version". Again, this is
only a Windows issue. On my Linux box the two versions are identical.
Again, "-server" is an option to the 'java' executable. It is the 'java'
executable that must be in the PATH, in this case the JDK version, not some
separate "server" or "client" version. Even on your box, the same JDK 'java'
version is in your PATH whether you run it with "-server" or "-client".