Copying the class files to your workstation allows
you to serve the files from your workstation. You can use the
AS400ToolBoxInstaller class or rely on existing mechanisms for obtaining
server updates on your workstation.
You can use either the jt400.zip file or the jt400.jar file
on your workstation. (The jt400.jar file is smaller, but some
tools and Java Virtual Machines (JVMs) accept only zip files. Use the
file that works best for you.) The following instructions use the
jt400.zip file, but these instructions also work for the
jt400.jar file. To copy the files from the AS/400 to your
workstation:
- Decide what method you would like to use to copy files to your
workstation. You can use the AS400ToolboxInstaller class or manually
copy either the zip or jar file.
- The AS/400 Toolbox for Java information fully documents the
AS400ToolboxInstaller class. In the AS/400 Toolbox for Java information
in the AS/400e Information Center, look under "Tips for Programming" and then "Install and update." Or
if you are viewing this information through the Information Center, see
Client installation and update classes
.
- Find the file named jt400.zip. It should reside in the
/QIBM/ProdData/HTTP/Public/jt400/lib directory. Copy
jt400.zip from the AS/400 to your workstation. This can be
accomplished in a variety of ways. The easiest way is to use Client
Access/400 to map a network drive on your workstation to the AS/400.
Another method is to use file transfer protocol (FTP) to send the file to your
workstation (ensure that you transfer the file in binary mode).
- Update the CLASSPATH environment variable of your workstation by adding
the location where you put the program files. For example, on a
personal computer (PC) that is using the Windows 95 operating system, if
jt400.zip resides in C:\jt400\lib\jt400.zip,
add ;C:\jt400\lib\jt400.zip to the CLASSPATH
variable.