64 lines
3.5 KiB
HTML
64 lines
3.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="task" />
|
|
<meta name="DC.Title" content="Writing your first IBM Toolbox for Java program" />
|
|
<meta name="abstract" content="" />
|
|
<meta name="description" content="" />
|
|
<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="tutorialhelp" />
|
|
<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>Writing your first IBM Toolbox for Java program</title>
|
|
</head>
|
|
<body id="tutorialhelp"><a name="tutorialhelp"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Writing your first IBM<sup>®</sup> Toolbox for Java program</h1>
|
|
<div><p></p>
|
|
<div class="section"><p>To begin this simple exercise, you must have installed Java™ on
|
|
your workstation. You can decide which version you want to install by reviewing <a href="rzahnm0403.htm#rzahnm0403">Requirements for running Java applications</a>.</p>
|
|
<p>After
|
|
you have Java installed on your client, complete the following
|
|
tasks:</p>
|
|
</div>
|
|
<ol><li class="stepexpand"><span> <a href="rzahnm09.htm#rzahnm09__copyjar">Copy jt400.jar to
|
|
the workstation</a>.</span></li>
|
|
<li class="stepexpand"><span>Add jt400.jar to the CLASSPATH on your workstation by appending
|
|
the full path of the JAR file to the CLASSPATH. For example, when the jt400.jar
|
|
file resides in the c:\lib directory on your workstation (running Windows<sup>®</sup>),
|
|
add the following to the end of your CLASSPATH statement:</span> <div class="p"><pre> ;c:\lib\jt400.jar</pre>
|
|
</div>
|
|
</li>
|
|
<li class="stepexpand"><span>Open a text editor and type the <a href="cmdcallex.htm#cmdcallex">first
|
|
simple programming example</a></span> <div class="note"><span class="notetitle">Note:</span> Make sure to leave out
|
|
the text that refers to the Notes (for example, Note 1, Note 2, and so on).
|
|
Save the new document with the name CmdCall.java.</div>
|
|
</li>
|
|
<li class="stepexpand"><span>Start a command session on your workstation and use the following
|
|
command to compile the simple programming example:</span> <div class="p"><pre> javac CmdCall.java</pre>
|
|
</div>
|
|
</li>
|
|
<li class="stepexpand"><span>In the command session, type the following command to run the simple
|
|
programming example:</span> <div class="p"><pre> java CmdCall</pre>
|
|
</div>
|
|
</li>
|
|
</ol>
|
|
<div class="section"><p>[ <a href="tutorial.htm#tutorial">Simple programming examples</a> ]</p>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |