Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is -server and -client option?

 
Gurumurthy Ramamurthy
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 V Rao
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What JRE do you have installed, Vijay?
 
Vijayendra V Rao
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic