Mega Code Archive

 
Categories / Java Tutorial / Language
 

Commonly Used Java Command Options

Option                              Description -client                             Runs the client VM -serve                              Runs the server VM, which is optimized for server systems -classpath adirectories             A list of directories or JAR or Zip archive and archives files used to search for class files -cp <search path>                   Same as -classpath -D name=value                       Sets a system property -verbose                            Enables verbose output -version                            Displays the JRE version number, then stops -showversion                        Displays the JRE version number, then continues -? or -help                         Lists the standard options -X                                  Lists nonstandard options -ea or -enableassertions            Enables the assert command -ea classes or packages             Enables assertions for the specified classes or packages -esa or -enablesystemassertions     Enables system assertions -dsa or -disablesystemassertions    Disables system assertions