59 lines
4.1 KiB
HTML
59 lines
4.1 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="JavaApplicationCall" />
|
|
<meta name="abstract" content="The JavaApplicationCall class provides you with the ability to have your client use the server JVM to run a Java program that resides on the server." />
|
|
<meta name="description" content="The JavaApplicationCall class provides you with the ability to have your client use the server JVM to run a Java program that resides on the server." />
|
|
<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="jac" />
|
|
<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>JavaApplicationCall</title>
|
|
</head>
|
|
<body id="jac"><a name="jac"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">JavaApplicationCall</h1>
|
|
<div><p>The JavaApplicationCall class provides you with the ability to
|
|
have your client use the server JVM to run a Java™ program that resides on the server. </p>
|
|
<div class="section"><p><a href="javadoc/com/ibm/as400/access/JavaApplicationCall.html"> JavaApplicationCall</a> </p>
|
|
<p>After establishing a connection
|
|
to the server from the client, the JavaApplicationCall class lets you configure
|
|
the following:</p>
|
|
<ol><li>Set the CLASSPATH environment variable on the server with the <a href="javadoc/com/ibm/as400/access/JavaApplicationCall.html#SETCLASSPATH(JAVA.LANG.STRING)"> setClassPath()</a> method</li>
|
|
<li>Define your program's parameters with the <a href="javadoc/com/ibm/as400/access/JavaApplicationCall.html#SETPARAMETERS(JAVA.LANG.STRING[])"> setParameters()</a> method</li>
|
|
<li>Run the program with <a href="javadoc/com/ibm/as400/access/JavaApplicationCall.html#RUN()"> run()</a></li>
|
|
<li>Send input from the client to the Java program. The Java program
|
|
reads the input via standard input which is set with the <a href="javadoc/com/ibm/as400/access/JavaApplicationCall.html#SENDSTANDARDINSTRING(JAVA.LANG.STRING)"> sendStandardInString()</a> method. You can redirect standard
|
|
output and standard error from the Java program to the client via the <a href="javadoc/com/ibm/as400/access/JavaApplicationCall.html#GETSTANDARDOUTSTRING()"> getStandardOutString()</a> and <a href="javadoc/com/ibm/as400/access/JavaApplicationCall.html#GETSTANDARDERRORSTRING()"> getStandardErrorString()</a></li>
|
|
</ol>
|
|
<p>JavaApplicationCall is a class you call from your Java program.
|
|
However, the IBM<sup>®</sup> Toolbox
|
|
for Java also
|
|
provides utilities to call Java programs that reside on the server.
|
|
These utilities are complete Java programs you can run from your workstation.
|
|
See <a href="ujac.htm#ujac"> RunJavaApplication class</a> for more
|
|
information.</p>
|
|
</div>
|
|
<div class="section" id="jac__jacex"><a name="jac__jacex"><!-- --></a><h4 class="sectiontitle">Example</h4><p>The example in the JavaApplicationCall
|
|
Javadoc reference documentation shows how to run a program on the server (that
|
|
outputs "Hello World!") from the client:</p>
|
|
<blockquote><a href="javadoc/com/ibm/as400/access/JavaApplicationCall.html#EX">JavaApplicationCall</a></blockquote>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |