The Java Viewer (jview) executes Java applets and applications from the command line. Jview provides an environment that your application can run in, and supports both debug and retail versions of your application.
Use the following command to run jview:
jview [options] <classname> [arguments]
options | One or more jview options. |
classname | The name of the .class file to execute. Do not include the .class extension to this file name. For example, use HelloWorldApplet rather than HelloWorldApplet.class. |
arguments | Command-line arguments to be passed to the .class file supplied in classname parameter. |
/a /cp /cp:a /cp:p /d: /n /prof /p /v /vst /?
Jview supports both applications and applets. If your Java project has a main method, jview will execute it. Jview executes applets, when used with the /a switch, by sending the applet to Appletviewer.
Specify options to jview before the name of the .class file. If not, they will be interpreted as command-line arguments to the .class file.
Jview is similar to the wjview tool, except that wjview runs the application as a separate graphical user interface process and does not use a console window.
CLASSPATH Environment Variable