IBM User Guide for Java V7 on Windows > Developing Java applications > Plug-in, Applet Viewer and Web Start > Working with applets
Running and debugging applets with the Applet Viewer
Use the following commands to run and debug an applet with the Applet Viewer.
Tasks
- To run an applet with the Applet Viewer, enter the following command: appletviewer <name>.
<name> is one of the following options:
- The file name of an HTML file that calls an applet.
- The URL of a Web page that calls an applet.
For example, to start the Applet Viewer on an HTML file that calls an applet, type at a command prompt:
appletviewer <demo>\GraphLayout\example1.htmlWhere <demo> is replaced by the full path into which you unzipped the demo package.
To start the Applet Viewer on a Web page, type at a command prompt:
appletviewer http://mywebpage.com/demo/applets/MyApplet/example1.htmlThe Applet Viewer does not recognize the charset option of the <META> tag. If the file that the Applet Viewer loads is not encoded as the system default, an I/O exception might occur. To avoid the exception, use the -encoding option when you run appletviewer. For example:
appletviewer -encoding JISAutoDetect sample.html- To debug an applet with the Applet Viewer, use the debug parameter with the appletviewer command.
For example:
> cd demo\applets\TicTacToe ..\..\..\bin\appletviewer -debug example1.htmlYou can find documentation about how to debug applets using the Applet Viewer at the Oracle Web site: .http://download.oracle.com/javase/7/docs/technotes/guides/plugin/developer_guide/debugger.html
Parent: Working with applets
Error 404 - Not Found Error 404 - Not Found
The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.