94 lines
5.7 KiB
HTML
94 lines
5.7 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="reference" />
|
||
|
<meta name="DC.Title" content="Example: Prepare your iSeries server" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahapaseenvvariables.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahapaseexmpls.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahapaseexmplsdownload.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahapaseexmplscompile.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahapaseexmpls.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="rzahapaseexmplsserver" />
|
||
|
<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>Example: Prepare your iSeries server</title>
|
||
|
</head>
|
||
|
<body id="rzahapaseexmplsserver"><a name="rzahapaseexmplsserver"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Example: Prepare your iSeries server</h1>
|
||
|
<div><div class="section"><p>Before
|
||
|
running the IBM<sup>®</sup> <span class="keyword">i5/OS™</span> PASE native method for Java™ example,
|
||
|
you need to prepare your iSeries™ server to run the example. Preparing the
|
||
|
server requires copying the files to the server and adding the necessary
|
||
|
environment variables to run the example.</p>
|
||
|
<p>To prepare your server,
|
||
|
complete the following steps:</p>
|
||
|
<ol><li>Create the following integrated file system directory on the server that
|
||
|
you want to contain the example files. For example, use the following
|
||
|
control language (CL) command to create the directory named /home/example:
|
||
|
<pre> mkdir /home/example</pre>
|
||
|
</li>
|
||
|
<li>Copy the following files to the new directory: <ul><li>PaseExample1.class</li>
|
||
|
<li>libPaseExample1.so</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
<li>From an iSeries command
|
||
|
prompt, use the following control language (CL) commands to add the necessary
|
||
|
environment variables: <pre> addenvvar PASE_THREAD_ATTACH 'Y'
|
||
|
addenvvar PASE_LIBPATH '/home/example'
|
||
|
addenvvar QIBM_JAVA_PASE_STARTUP '/usr/lib/start32'</pre>
|
||
|
</li>
|
||
|
</ol>
|
||
|
<p><strong>Note:</strong> When using PASE native methods from an <span class="keyword">i5/OS</span> PASE
|
||
|
terminal session, a 32-bit PASE environment is already started. In this
|
||
|
case, set only PASE_THREAD_ATTACH to Y and. PASE_LIBPATH to the path for
|
||
|
the PASE native method libraries. In this situation, when you define QIBM_JAVA_PASE_STARTUP,
|
||
|
the JVM does not successfully start.</p>
|
||
|
<p>For more information about the
|
||
|
added environment variables, see the following topic:</p>
|
||
|
<ul><li><a href="rzahapaseenvvariables.htm">Environment variables for the IBM <span class="keyword">i5/OS</span> PASE example</a></li>
|
||
|
</ul>
|
||
|
<p>For more information about the IBM <span class="keyword">i5/OS</span> PASE
|
||
|
native method for Java example, see the following topics:</p>
|
||
|
<ul><li><a href="rzahapaseexmpls.htm">Example: IBM <span class="keyword">i5/OS</span> PASE
|
||
|
native method for Java</a></li>
|
||
|
<li><a href="rzahapaseexmplsdownload.htm">Example: Download the example
|
||
|
source code to your AIX<sup>®</sup> workstation</a></li>
|
||
|
<li><a href="rzahapaseexmplscompile.htm">Example: Prepare the example
|
||
|
source code</a> </li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahapaseexmpls.htm" title="The IBM i5/OS PASE native method for Java example calls an instance of a native C method that then uses Java Native Interface (JNI) to call back into Java code. Rather than accessing the string directly from Java code, the example calls a native method that then calls back into Java through JNI to get the string value.">Example: IBM i5/OS PASE native method for Java</a></div>
|
||
|
</div>
|
||
|
|
||
|
<div class="linklist"><strong>Collected links</strong><br />
|
||
|
|
||
|
<div><a href="rzahapaseenvvariables.htm" title="To use the IBM i5/OS PASE native methods for Java example, you need to set environment variables.">Environment variables for
|
||
|
the IBM <span class="keyword">i5/OS</span> PASE
|
||
|
example</a></div>
|
||
|
<div><a href="rzahapaseexmpls.htm" title="The IBM i5/OS PASE native method for Java example calls an instance of a native C method that then uses Java Native Interface (JNI) to call back into Java code. Rather than accessing the string directly from Java code, the example calls a native method that then calls back into Java through JNI to get the string value.">Example: IBM <span class="keyword">i5/OS</span> PASE
|
||
|
native method for Java</a></div>
|
||
|
<div><a href="rzahapaseexmplsdownload.htm">Example: Download the
|
||
|
example source code to your AIX workstation</a></div>
|
||
|
<div><a href="rzahapaseexmplscompile.htm">Example: Prepare the example
|
||
|
source code</a></div></div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|