Next / Previous / Index / ITC Help System / Publications / Site map / NM Tech homepage

The Java programming language

Tech Computer Center logo

Use the java command to execute Java:

$ java
Usage: java [-options] class [args...]
           (to execute a class)
   or  java -jar [-options] jarfile [args...]
           (to execute a jar file)

where options include:
    -client       to select the "client" VM
    -hotspot      is a synonym for the "hotspot" VM  [deprecated]
    -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 -client.

    -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

The Java language is under the control of Sun Microsystems. See Sun's Java page for more information.

You can check out this book from the help desk:

Winston, Patrick Henry, and Sundar Narasimhan. On to Java. Addison-Wesley, 1996. ISBN 020149826X

Next: The Perl programming language
See also: Selecting a programming language
Previous: The Python programming language
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Information Technology and Communications: Help System
ITC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

John Shipman,
Last updated: 2002/12/05 02:00:32 UT
QR two-dimensional bar code