IBM Support

How to make external Java classes available to a 5250 macro

How To


Summary

IBM i Access Client Solutions 5250 Macros can be written to use custom macro scripting language and it might be desirable to reference external Java classes within that code. This document provides the information needed to accomplish this goal.

Objective

Provide the information needed to reference external Java classes from IBM i Access Client Solutions 5250 custom macros.

Environment

IBM i Access Client Solutions 1.1.8.8 and later.

Steps

To use an external Java class, locate the Session Manager Directory by opening the IBM i ACS Session Manager and from File select Open Directory. By default this is going to be a path similar to: Documents\IBM\iAccessClient\Emulator.

Then, create the following directory structure under the Emulator folder:

/macro/classes

/macro/lib

/macro/classes is for *.class files with the proper directory structure like com/ibmifst/AcsMacroAccessor.class

/macro/lib is for *.jar files.

Put the wanted .class or .jar files that are to be referenced in the appropriate IBM\iAccessClient\Emulator\macro\classes or IBM\iAccessClient\Emulator\macro\lib folder and the custom macro scripts can access them.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB66","label":"Technology Lifecycle Services"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SSRQKY","label":"IBM i Access Client Solutions"},"ARM Category":[{"code":"a8m0z0000000CTpAAM","label":"IBM i Access-\u003EAccess Client Solutions"}],"ARM Case Number":"TS012020569","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
02 March 2023

UID

ibm16959665