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

90 lines
5.4 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="task" />
<meta name="DC.Title" content="Install extensions for the IBM Developer Kit for Java" />
<meta name="abstract" content="Extensions are packages of Java classes that you can use to extend the functionality of the core platform. Extensions are packaged in one or more ZIP files or JAR files, and are loaded into the Java virtual machine by an extension class loader." />
<meta name="description" content="Extensions are packages of Java classes that you can use to extend the functionality of the core platform. Extensions are packaged in one or more ZIP files or JAR files, and are loaded into the Java virtual machine by an extension class loader." />
<meta name="DC.Relation" scheme="URI" content="install.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="instextn" />
<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>Install extensions for the IBM Developer Kit for Java</title>
</head>
<body id="instextn"><a name="instextn"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Install extensions for the IBM Developer Kit for Java</h1>
<div><p>Extensions are packages of Java™ classes that you can use to extend
the functionality of the core platform. Extensions are packaged in one or
more ZIP files or JAR files, and are loaded into the Java virtual
machine by an extension class loader.</p>
<div class="section"><p>The extension mechanism allows the Java virtual machine to use the extension
classes in the same way that the virtual machine uses the system classes.
The extension mechanism also provides a way for you to retrieve extensions
from specified Uniform Resource Locators (URLs) when they are not already
installed in the J2SDK, version 1.2 or higher or Java 2 Runtime Environment, Standard Edition,
version 1.2 and higher.</p>
<p>Some JAR files for extensions are shipped with
the iSeries™ server.
If you would like to install one of these extensions, enter this command:</p>
<blockquote><pre>ADDLNK OBJ('/QIBM/ProdData/Java400/ext/extensionToInstall.jar')
NEWLNK('/QIBM/UserData/Java400/ext/extensionToInstall.jar')
LNKTYPE(*SYMBOLIC)</pre>
</blockquote>
<p> Where</p>
<samp class="codeph">extensionToInstall.jar</samp><p>is
the name of the ZIP or JAR file that contains the extension that you want
to install. </p>
<div class="note"><span class="notetitle">Note:</span> JAR files of extensions not provided by IBM<sup>®</sup> may be placed
in the /QIBM/UserData/Java400/ext directory.</div>
<p>When you create a link
or add a file to an extension in the /QIBM/UserData/Java400/ext directory,
the list of files that the extension class loader searches changes for <em>every Java virtual
machine that is running on your iSeries server</em>. If you do not want
to impact the extension class loaders for other Java virtual machines on your iSeries server,
but you still want to create a link to an extension or install an extension
not shipped by IBM with
the iSeries server,
follow these steps:</p>
</div>
<ol><li><span>Create a directory to install the extensions. Use either the Make
Directory (MKDIR) command from the iSeries command line or the <samp class="codeph">mkdir</samp> command
from the Qshell Interpreter.</span></li>
<li><span>Place the extension JAR file in the directory created.</span></li>
<li><span>Add the new directory to the java.ext.dirs property. You can add
the new directory to the java.ext.dirs property by using the PROP field of
the JAVA command from the iSeries command line.</span></li>
</ol>
<div class="section"><p> If the name of your new directory is /home/username/ext, the name
of your extension file is extensionToInstall.jar, and the name of your Java program
is Hello, then the commands that you enter should look like this:</p>
<blockquote><pre>MKDIR DIR('/home/username/ext')
CPY OBJ('/productA/extensionToInstall.jar') TODIR('/home/username/ext') or
copy the file to /home/username/ext using FTP (file transfer protocol).
JAVA Hello PROP((java.ext.dirs '/home/username/ext'))</pre>
</blockquote>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="install.htm" title="Installing IBM Developer Kit for Java allows you to create and run Java programs on your iSeries server.">Install IBM Developer Kit for Java</a></div>
</div>
</div>
</body>
</html>