82 lines
5.3 KiB
HTML
82 lines
5.3 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="concept" />
|
|
<meta name="DC.Title" content="Java appletviewer tool" />
|
|
<meta name="abstract" content="The Java appletviewer tool allows you to run applets without a web browser. It is compatible with the appletviewer tool that is supplied by Sun Microsystems, Inc." />
|
|
<meta name="description" content="The Java appletviewer tool allows you to run applets without a web browser. It is compatible with the appletviewer tool that is supplied by Sun Microsystems, Inc." />
|
|
<meta name="DC.Relation" scheme="URI" content="javatool.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahahowto.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="appletviewer" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Java appletviewer tool</title>
|
|
</head>
|
|
<body id="appletviewer"><a name="appletviewer"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Java appletviewer tool</h1>
|
|
<div><p>The Java™ <samp class="codeph">appletviewer</samp> tool allows you to
|
|
run applets without a web browser. It is compatible with the <samp class="codeph">appletviewer</samp> tool
|
|
that is supplied by Sun Microsystems, Inc.</p>
|
|
<p>To run the <samp class="codeph">appletviewer</samp> tool, you need to use <a href="nawt.htm">Native
|
|
Abstract Window Toolkit (NAWT)</a>, and use either the <samp class="codeph">sun.applet.AppletViewer</samp> class
|
|
or run the appletviewer tool in the Qshell Interpreter.</p>
|
|
<p>The following is an example of using the <samp class="codeph">sun.applet.AppletViewer</samp> class
|
|
and running the TicTacToe demo example. For information about how to load
|
|
the demo examples, see <a href="rzahahowto.htm">How to extract sample
|
|
files</a>.</p>
|
|
<p>From the command line, enter:</p>
|
|
<pre> cd '/home/MyUserID/demo/applets/TicTacToe'</pre>
|
|
<p>For JDK 1.3, issue the command:</p>
|
|
<pre> JAVA CLASS(sun.applet.AppletViewer) PARM('example1.html')
|
|
PROP((os400.class.path.rawt 2)(java.version 1.3))</pre>
|
|
<p>For JDK 1.4, issue the command:</p>
|
|
<pre> JAVA CLASS(sun.applet.AppletViewer) PARM('example1.html')
|
|
prop((os400.awt.native true)(java.version 1.4))</pre>
|
|
<p><img src="./delta.gif" alt="Start of change" />For JDK 1.5, issue the command:<img src="./deltaend.gif" alt="End of change" /></p>
|
|
<pre> JAVA CLASS(sun.applet.AppletViewer) PARM('example1.html')
|
|
prop((os400.awt.native true)(java.version 1.5))</pre>
|
|
<p>The following is an example of using the <samp class="codeph">appletviewer</samp> tool
|
|
in the Qshell Interpreter and running the TicTacToe demo example. For information
|
|
about how to load the demo examples, see <a href="rzahahowto.htm">How
|
|
to extract sample files</a>.</p>
|
|
<p>The corresponding commands would be:</p>
|
|
<pre> cd /home/MyUserID/demo/applets/TicTacToe</pre>
|
|
<p>For JDK 1.3, issue the command:</p>
|
|
<pre> Appletviewer -J-Dos400.class.path.rawt=2 -J-Djava.version=1.3 example1.html</pre>
|
|
<p>For JDK 1.4, issue the command:</p>
|
|
<pre> Appletviewer -J-Dos400.awt.native=true -J-Djava.version=1.4 example1.html</pre>
|
|
<p><img src="./delta.gif" alt="Start of change" />For JDK 1.5, issue the command:<img src="./deltaend.gif" alt="End of change" /></p>
|
|
<pre> Appletviewer -J-Dos400.awt.native=true -J-Djava.version=1.5 example1.html</pre>
|
|
<div class="note"><span class="notetitle">Note:</span> -J are runtime flags for Appletviewer. -D are properties.</div>
|
|
<p>For more information about the <samp class="codeph">appletviewer</samp> tool, see
|
|
the <a href="http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/appletviewer.html" target="_blank">appletviewer tool by Sun Microsystems, Inc.</a><img src="www.gif" alt="Link outside Information Center" /></p>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rzahahowto.htm">How to extract sample files</a></strong><br />
|
|
The following procedure shows one way to extract the sample files
|
|
before you run the Java appletviewer tool. The procedure assumes
|
|
you want to extract the sample files into your home directory.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="javatool.htm" title="See the topics here for descriptions of Java tools.">Java tools</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |