ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/program/clsjvm.htm

40 lines
2.2 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Java Virtual Machine classloaders</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h5><A NAME="clsjvm">Java Virtual Machine classloaders</A></h5>
<p>The Java Virtual Machine classloaders, also called the system classloader, are provided by the Java Virtual Machine run time. In JDK 1.3, there are three classloaders, which have the following hierarchy:</p>
<ol>
<li><strong>boot classloader</strong><br>
Loads the core JDK 1.3 runtime classes.</li>
<li><strong>extension classloader</strong><br>
Loads Java Virtual Machine extensions. The classes loaded are defined by the value of the java.ext.dirs Java system property.</li>
<li><strong>user classloader</strong><br>
Loads user classes. The classes loaded are defined by the value of the CLASSPATH
environment variable or the -classpath Java option.</li>
</ol>
<p>The user classloader contains the J2EE APIs of WebSphere Application Server - Express (inside j2ee.jar). Because the J2EE APIs are in this classloader, you can add libraries that depend on J2EE APIs to the classpath system property to extend a server's classpath. However, this is not recommended. The normal and recommended configuration is to package J2EE artifacts in an enterprise application (EAR) and have these classes loaded by an application module classloader.</p>
<p>It is normally not recommended to change any of the Java Virtual Machine classloaders in a WebSphere Application Server - Express environment. User code should be added to either application server classloaders or application module classloaders.</p>
<p>The i5/OS Java Virtual Machine user classloader has a cache feature that allows the Java Virtual Machine to &quot;remember&quot; classes that have been loaded with user classloaders. For more information, see <strong><a href="clscache.htm">Java cache for user classloaders</a></strong>.</p>
</body>
</html>