Name
Java Command-Line Loader —
\windows\system32\jview.exe; wjview.exe
Synopsis
Run Java programs without using a web browser.
To Open
Command Prompt →
jview
Command Prompt →
wjview
Usage
jview [options]filename[arguments] wjview [options]filename[arguments]
Description
Java is a programming language that allows developers to create
programs that can run on any platform, including Windows, Unix, and
MacOS. Since Java applications (.class files)
aren’t formal Windows programs, they
can’t be opened by themselves; rather, you must use
the Java Command-Line Loader to run them. The exceptions are
so-called Java applets, which are Java programs included in web pages
and run internally by your web browser.
Windows XP comes with two Java command-line loaders,
jview.exe and wjview.exe.
Both versions do the same thing and accept exactly the same
parameters (see below). The difference is that
jview.exe is a command-line-based program and
wjview.exe is a Windows-based program. The Java
Command-Line Loader takes the following options:
-
classname The full path and filename of the
.classfile to be executed.-
/a Executes AppletViewer.
-
/d:<name>=<value> Defines a system variable to be used by the Java program.
-
/n <namespace> The namespace in which to run.
-
/p Pauses before terminating if an error occurs.
-
/v Verifies the Java program before executing it.
-
arguments The command-line arguments to be passed onto the Java program.
-
/vst Prints verbose stack traces (requires debug classes).
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access