You can specify which version to run using the -server and -client command line options. The default depends on the specification of the machine you are running on.
How the default is chosen can be found here
[ August 04, 2008: Message edited by: Joanne Neal ]
So, How can i set the client / server mode when there is no options available for mode in java
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-hotspot to select the "hotspot" VM
-server to select the "server" VM
-classic to select the "classic" VM
If present, the option to select the VM must be first.
The default VM is -hotspot.
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
set a system property
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options