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

120 lines
8.5 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 i5/OS PASE environment variables" />
<meta name="abstract" content="The Java virtual machine (JVM) uses the following variables to start i5/OS PASE environments. You need to set the QIBM_JAVA_PASE_STARTUP variable in order to run the IBM i5/OS PASE native method for Java example." />
<meta name="description" content="The Java virtual machine (JVM) uses the following variables to start i5/OS PASE environments. You need to set the QIBM_JAVA_PASE_STARTUP variable in order to run the IBM i5/OS PASE native method for Java example." />
<meta name="DC.Relation" scheme="URI" content="rzahapaseexmplsmain.htm" />
<meta name="DC.Relation" scheme="URI" content="rzahapaseerrors.htm" />
<meta name="DC.Relation" scheme="URI" content="rzahapaseexmplslibrary.htm" />
<meta name="DC.Relation" scheme="URI" content="rzahapaseexmpls.htm" />
<meta name="DC.Relation" scheme="URI" content="rzahapaseenvvariables.htm" />
<meta name="DC.Relation" scheme="URI" content="rzahapaseexmplschildstartup.htm" />
<meta name="DC.Relation" scheme="URI" content="rzahapaseexmplsallowprev.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="rzahapasejavaenvvariables" />
<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 i5/OS PASE
environment variables</title>
</head>
<body id="rzahapasejavaenvvariables"><a name="rzahapasejavaenvvariables"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Java <span class="keyword">i5/OS</span> PASE
environment variables</h1>
<div><p>The Java™ virtual machine (JVM) uses the following variables
to start <span class="keyword">i5/OS™</span> PASE environments.
You need to set the QIBM_JAVA_PASE_STARTUP variable in order to run the IBM<sup>®</sup> <span class="keyword">i5/OS</span> PASE native method for Java example.</p>
<p>For information about setting environment variables for the example, see
the following topic:</p>
<blockquote> <p><a href="rzahapaseenvvariables.htm">Environment variables for
the IBM <span class="keyword">i5/OS</span> PASE example</a>.</p>
</blockquote>
<dl><dt class="dlterm"><strong>QIBM_JAVA_PASE_STARTUP</strong></dt>
<dd>You need to set this environment variable when both of the following conditions
occur: <ul><li>You are using <span class="keyword">i5/OS</span> PASE
native methods</li>
<li>You are starting Java from an iSeries™ command prompt or Qshell command
prompt</li>
</ul>
The JVM uses this environment variable to start a PASE environment.
The value of the variable identifies an <span class="keyword">i5/OS</span> PASE
startup program. Your iSeries server includes two <span class="keyword">i5/OS</span> PASE
startup programs: <ul><li>/usr/lib/start32: Starts a 32-bit <span class="keyword">i5/OS</span> PASE
environment</li>
<li>/usr/lib/start64: Starts a 64-bit <span class="keyword">i5/OS</span> PASE
environment</li>
</ul>
The bit format of all shared library objects used by an <span class="keyword">i5/OS</span> PASE environment must match
the bit format of the <span class="keyword">i5/OS</span> PASE
environment. <p>You cannot use this variable when starting Java from
an <span class="keyword">i5/OS</span> PASE terminal
session. An <span class="keyword">i5/OS</span> PASE
terminal session always uses a 32-bit <span class="keyword">i5/OS</span> PASE
environment. Any JVMs started from an <span class="keyword">i5/OS</span> PASE
terminal session use the same type of PASE environment as the terminal session.</p>
</dd>
</dl>
<dl><dt class="dlterm"><strong>QIBM_JAVA_PASE_CHILD_STARTUP</strong></dt>
<dd>Set this optional environment variable when the <span class="keyword">i5/OS</span> PASE
environment for a secondary JVM must be different than the <span class="keyword">i5/OS</span> PASE
environment the primary JVM. A call to Runtime.exec() in Java starts
a secondary (or child) JVM. <p>For more information, see <a href="rzahapaseexmplschildstartup.htm">Using
QIBM_JAVA_PASE_CHILD_STARTUP</a>.</p>
</dd>
</dl>
<dl><dt class="dlterm"><strong>QIBM_JAVA_PASE_ALLOW_PREV</strong></dt>
<dd>Set this optional environment variable when you want to use the current <span class="keyword">i5/OS</span> PASE environment, if one exists.
In certain situations, it is difficult to determine whether an <span class="keyword">i5/OS</span> PASE
environment already exists. Using QIBM_JAVA_PASE_ALLOW_PREV and QIBM_JAVA_PASE_STARTUP
in combination enables the JVM to either use an existing <span class="keyword">i5/OS</span> PASE
environment or start a new <span class="keyword">i5/OS</span> PASE
environment. <p>For more information, see <a href="rzahapaseexmplsallowprev.htm">Using
QIBM_JAVA_PASE_ALLOW_PREV</a>.<strong></strong></p>
</dd>
</dl>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rzahapaseenvvariables.htm">Examples: Environment variables for the IBM i5/OS PASE example</a></strong><br />
To use the IBM <span class="keyword">i5/OS</span> PASE
native methods for Java example, you need to set environment
variables.</li>
<li class="ulchildlink"><strong><a href="rzahapaseexmplschildstartup.htm">Using QIBM_JAVA_PASE_CHILD_STARTUP</a></strong><br />
The QIBM_JAVA_PASE_CHILD_STARTUP environment variable indicates
the <span class="keyword">i5/OS</span> PASE startup
program for any secondary JVMs.</li>
<li class="ulchildlink"><strong><a href="rzahapaseexmplsallowprev.htm">Using QIBM_JAVA_PASE_ALLOW_PREV</a></strong><br />
Sometimes it is difficult to determine whether an <span class="keyword">i5/OS</span> PASE environment
already exists. Using the optional environment variable QIBM_JAVA_PASE_ALLOW_PREV
in combination with QIBM_JAVA_PASE_STARTUP enables the JVM to determine whether
to use the current <span class="keyword">i5/OS</span> PASE environment (if one exists) or start a new
<span class="keyword">i5/OS</span> PASE environment.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahapaseexmplsmain.htm" title="The iSeries Java virtual machine (JVM) supports the use of native methods running in the i5/OS PASE environment. Prior to V5R2, the native iSeries JVM used only ILE native methods.">IBM i5/OS PASE native methods for Java</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rzahapaseerrors.htm" title="To help you troubleshoot i5/OS PASE native methods, this topic describes error conditions that are indicated by i5/OS job log messages and Java runtime exceptions. The following lists describe errors that you may encounter at start up or at run time when using i5/OS PASE native methods for Java.">Java i5/OS PASE error codes</a></div>
<div><a href="rzahapaseexmplslibrary.htm" title="To use native method libraries, especially when you want to manage multiple versions of a native method library on your iSeries server, you need to understand both the Java library naming conventions and the library search algorithm.">Managing native method libraries</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 i5/OS PASE native method for Java</a></div>
</div>
</div>
</body>
</html>