ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaha_5.4.0.1/jarfile.htm

73 lines
6.8 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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 JAR and class files" />
<meta name="abstract" content="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." />
<meta name="description" content="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." />
<meta name="DC.Relation" scheme="URI" content="platform.htm" />
<meta name="DC.Relation" scheme="URI" content="appsappl.htm" />
<meta name="DC.Relation" scheme="URI" content="javavirm.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="jarfile" />
<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 JAR and class files</title>
</head>
<body id="jarfile"><a name="jarfile"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Java JAR and class files</h1>
<div><p>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.</p>
<p>You can use JAR as a general archiving tool and also to distribute Java programs
of all types, including applets. Java applets download into a browser in
a single Hypertext Transfer Protocol (HTTP) transaction rather than by opening
a new connection for each piece. This method of downloading improves the speed
at which an applet loads on a Web page and begins functioning.</p>
<p>JAR is the only archive format that is cross-platform. JAR is also the
only format that handles audio files and image files, as well as class files.
JAR is an open standard, fully extendable format that is written in Java.</p>
<p>The JAR format also supports compression, which reduces the size of the
file and decreases download time. Additionally, an applet author may digitally
sign individual entries in a JAR file to authenticate their origin.</p>
<p>To update classes in JAR files, see the <a href="javaapi/tooldocs/windows/jar.html" target="_blank">Java jar tool</a>.</p>
<p><strong>Java class
files</strong> are stream files that are produced when a source file is compiled
by the Java compiler. The class file contains tables that describe
each field and method of the class. The file also contains the bytecodes for
each method, static data, and descriptions that are used to represent Java objects.</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="appsappl.htm" title="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.">Java applets and applications</a></div>
<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="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>