GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes What is -server and -client option? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is -server and -client option?" Watch "What is -server and -client option?" New topic
Author

What is -server and -client option?

Gurumurthy Ramamurthy
Ranch Hand

Joined: Feb 13, 2003
Posts: 272
Hello,

I heard you can run a java program using -server and -client option. What are these and what are the uses?

Thanks,
Guru
Vijayendra V Rao
Ranch Hand

Joined: Jul 04, 2004
Posts: 195
The following are the command line options that you can use with the java command:

___________________________________________________________________________

-hotspot

-cp -classpath <directories and zip/jar files separated by ;>

-D<name>=<value>

-verbose[:class|gc|jni]

-version

-showversion

-? -help

-X
___________________________________________________________________________

I don't think that there are options -server and -client.


Vijayendra <br /> <br />"The harder you train in peace, the lesser you bleed in war"
Vijayendra V Rao
Ranch Hand

Joined: Jul 04, 2004
Posts: 195
The ones that I have posted above are the Standard options. Even if you look at the non-standard options, the ones I have included below, you still don't have the -server and -client options.

___________________________________________________________________________

-Xmixed

-Xint

-Xbootclasspath:<directories and zip/jar files separated by ;>

-Xbootclasspath/a:<directories and zip/jar files separated by ;>

-Xbootclasspath/p:<directories and zip/jar files separated by ;>

-Xnoclassgc

-Xincgc

-Xbatch

-Xms<size>

-Xmx<size>

-Xss<size>

-Xprof

-Xrunhprof[:help]|[:<option>=<value>, ...]

-Xdebug

-Xfuture

-Xrs
___________________________________________________________________________
Darin Niard
Ranch Hand

Joined: Jun 08, 2004
Posts: 118
What JRE do you have installed, Vijay?
Vijayendra V Rao
Ranch Hand

Joined: Jul 04, 2004
Posts: 195
Originally posted by Darin Niard:
What JRE do you have installed, Vijay?


My JDK must be older than yours...thats why I did not get those options

Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
The Java application launcher tool is documented at
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html

Concerning the use/meaning of -server and -client switches...

If I recall correctly, using the -server switch typically causes the JVM to start more slowly, and then run in a more efficient manner once started. The -client switch typically causes the JVM to start more quickly, skipping some of the optimizations used by the -server switch.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
GeeCON Prague 2014
 
subject: What is -server and -client option?