IBM Support

What are my options for accessing Toolbox class files?

Question & Answer


Question

What are my options for accessing Toolbox class files?

Answer

For Java programs , you have the following choices. In either case, the CLASSPATH environment variable on the workstation must be updated to point to the Toolbox jar file.
  • Download the Toolbox jar file to the workstation. The AS400ToolboxInstaller class provided by the Toolbox can be used to install the file and keep it up to date when PTFs are applied to the IBM i system.
  • Leave the Toolbox jar file on the IBM i system and access it via an IBM i™ Access network drive.
  • Copy the jar file to a network server and use the client's network file support (network drives, NFS, etc.) to access the file.
For Java applets , you have the following choices:
  • Use support built into browsers to access a file on the HTML server. The codebase parameter of the applet HTML tag tells the browser where to look for classes. The Toolbox classes are in the jt400.jar file. Update the applet tag to point to jt400.jar.
  • Use servlets. A servlet is a Java program running on a system called by an HTML page running on a client (a servlet is a more powerful, Java version of CGI-bin programs). The servlet will use the Toolbox classes to access IBM i data instead of an applet running on the client. The servlet gets program parameters from the client, uses the Toolbox classes to access data on the IBM i system, and then returns results to the client in an updated HTML page. The Toolbox classes are used only by the system running the servlet so they can be on the system’s local drive or on a network which the system can access.
  • Many browsers can access the client's CLASSPATH environment variable or have their own CLASSPATH variable. As in Java applications, the CLASSPATH variable can be updated to point to the Toolbox zip file which is copied to the workstation or is on a network the workstation can access.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Product Synonym

IBM i;AS400

Document Information

Modified date:
17 March 2020

UID

ibm11117893