71 lines
6.6 KiB
HTML
71 lines
6.6 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 applets and applications" />
|
|
<meta name="abstract" content="An applet is a Java program designed to be included in an HTML Web document. You can write your Java applet and include it in an HTML page, much in the same way an image is included. When you use a Java-enabled browser to view an HTML page that contains an applet, the applet's code is transferred to your system and is run by the browser's Java virtual machine." />
|
|
<meta name="description" content="An applet is a Java program designed to be included in an HTML Web document. You can write your Java applet and include it in an HTML page, much in the same way an image is included. When you use a Java-enabled browser to view an HTML page that contains an applet, the applet's code is transferred to your system and is run by the browser's Java virtual machine." />
|
|
<meta name="DC.Relation" scheme="URI" content="platform.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="javavirm.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="jarfile.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="threads.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="sunjdk.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="appsappl" />
|
|
<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 applets and applications</title>
|
|
</head>
|
|
<body id="appsappl"><a name="appsappl"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Java applets and applications</h1>
|
|
<div><p>An applet is a Java™ program designed to be included in
|
|
an HTML Web document. You can write your Java applet and include it in an HTML page,
|
|
much in the same way an image is included. When you use a Java-enabled browser
|
|
to view an HTML page that contains an applet, the applet's code is transferred
|
|
to your system and is run by the browser's Java virtual machine.</p>
|
|
<p>The HTML document contains tags, which specify the name of the Java applet
|
|
and its Uniform Resource Locator (URL). The URL is the location at which the
|
|
applet bytecodes reside on the Internet. When an HTML document containing
|
|
a Java applet
|
|
tag is displayed, a Java-enabled Web browser downloads the Java bytecodes
|
|
from the Internet and uses the Java virtual machine to process the code
|
|
from within the Web document. These Java applets are what enable Web pages to
|
|
contain animated graphics or interactive content.</p>
|
|
<p>You can also write a Java application that does not require the
|
|
use of a Web browser.</p>
|
|
<p>For more information, see <a href="http://java.sun.com/docs/books/tutorial/applet/index.html" target="_blank">Writing Applets</a>, Sun Microsystems' tutorial for Java applets.
|
|
It includes an overview of applets, directions for writing applets, and some
|
|
common applet problems.</p>
|
|
<p><strong>Applications</strong> are stand-alone programs that do not require the use
|
|
of a browser. Java applications run by starting the Java interpreter
|
|
from the command line and by specifying the file that contains the compiled
|
|
application. Applications usually reside on the system on which they are deployed.
|
|
Applications access resources on the system, and are restricted by the <a href="securmod.htm">Java security model</a>.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="platform.htm" title="The Java platform is the environment for developing and managing Java applets and applications. It consists of three primary components: the Java language, the Java packages, and the Java virtual machine.">Java platform</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="javavirm.htm" title="The Java virtual machine is a runtime environment that you can add into a web browser or any operating system, such as IBM i5/OS. The Java virtual machine runs instructions that a Java compiler generates. It consists of a bytecode interpreter and runtime that allow Java class files to run on any platform, regardless of the platform on which they were originally developed.">Java virtual machine</a></div>
|
|
<div><a href="jarfile.htm" title="A Java ARchive (JAR) file is a file format that combines many files into one. The Java environment differs from other programming environments in that the Java compiler does not generate machine code for a hardware-specific instruction set. Instead, the Java compiler converts Java source code into Java virtual machine instructions, which Java class files store. You can use JAR files to store class files. The class file does not target a specific hardware platform, but instead targets the Java virtual machine architecture.">Java JAR and class files</a></div>
|
|
<div><a href="threads.htm" title="A thread is a single independent stream that runs within a program. Java is a multithreaded programming language, so more than one thread may be running within the Java virtual machine at one time. Java threads provide a way for a Java program to perform multiple tasks at the same time. A thread is essentially a flow of control in a program.">Java threads</a></div>
|
|
<div><a href="sunjdk.htm" title="The Java Development Kit (JDK) is software that is distributed by Sun Microsystems, Inc. for Java developers. It includes the Java interpreter, Java classes, and Java development tools: compiler, debugger, disassembler, appletviewer, stub file generator, and documentation generator.">Sun Microsystems, Inc. Java Development Kit</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |