APPLETVIEWER Linux Command
What is Linux appletviewer Command?
Explanation
appletviewer COMMAND:The appletviewer command is used to run applets outside of a web browser. The command runs the java applet viewer. In other words, the "appletviewer" command connects the documents or resources designated by urls and displays each applet referenced by the documents in its own window. The documents referred to by the urls should reference applets with the OBJECT, EMBED, or APPLET tag for the appletviewer command to run the applets.
The appletviewer command requires encoded URLs according to the escaping mechanism defined in RFC2396. Only encoded URLs are supported. However, file names must be unencoded, as specified in RFC2396. The appletviewer command is intended for development purposes only.
SYNTAX:
appletviewer [options] url...
OPTION:
Option |
Description |
-debug |
Starts the Applet Viewer in the Java debugger with the jdb
command to debug the applets in the document. |
-encoding encoding-name |
Specifies the input HTML file encoding name. |
-Jjavaoption |
SPasses the string javaoption as a single argument to the Java
interpreter, which runs the Applet Viewer. The argument should
not contain spaces. Multiple argument words must all begin with
the prefix -J. This is useful for adjusting the compiler's
execution environment or memory usage.
|
EXAMPLE:
- First you have to write java program to create applet window. Then, compile the program like below
javac appletprogram.java
Then, use appletviewer command to open applet window:
appletviewer appletprogram.java