java—The Java Interpreter

The Java interpreter is what you use to run your compiled Java application.

The syntax for the interpreter is

java [-options] class [args...]

where class only includes the name of the class and not the extension (.class). If the class belongs to a package, the class name should include the fully qualified package name with the class. The standard Java interpreter options are listed in Table B.1.

Table B.1. Java Interpreter Options
Option Description
-cp dirs or jars/zips java looks for class files in the specified directories, DIRS. For multiple directories, a colon (in UNIX) or semicolon (in DOS) is used to separate each directory. JAR files and/or ZIP files can also be specified, separated also by the separator character ...

Get Special Edition Using Java 2 Standard Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.