Java libraries in DataStage
You can create Java™ libraries in DataStage® and use them in Java Integration stages.
Note: To use the External Java libraries on IBM Cloud, you must set up a remote
runtime engine with DataStage as a Service Anywhere. For more information, see DataStage as a Service Anywhere.
A Java library is a set of JAR files that can be used in DataStage flows with the Java integration stage. You create Java libraries in DataStage by creating a DataStage Java library component. You can then upload these libraries into Java Integration stages in DataStage flows.
Creating a Java library
To create a Java library:
- Follow the process in Creating a DataStage component. When you select the type of DataStage component that you want to create, choose Java class library.
- On the "Create a DataStage component" page for the Java library type component, upload one or more JAR files. The files must contain Java classes.
- Click Create.
The Java library is created and the Java library page opens. The page contains details about the Java library that you can review.
- If you want to replace your Java library to another, click the Replace button and select another Java library to replace current one.
Adding a Java library to a DataStage flow
To add a Java library to a DataStage flow:
- Create or open a DataStage flow that contains a Java Integration stage.
- Open the details card for the stage.
- On the Stage tab, in the Add Java class properties section, click Edit.
- Select a Java library that you want to use from the list in the Java library field. Then, specify the required information for the other fields on the page.
- Click Apply and return. Then, click Save.
- Compile and run the flow.