0 / 0
Java libraries in DataStage

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:
  1. 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.
  2. 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.
  3. 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.

  4. If you want to replace your Java library to another, click the Replace button circular refresh icon 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:
  1. Create or open a DataStage flow that contains a Java Integration stage.
  2. Open the details card for the stage.
  3. On the Stage tab, in the Add Java class properties section, click Edit.
  4. 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.
  5. Click Apply and return. Then, click Save.
  6. Compile and run the flow.
Generative AI search and answer
These answers are generated by a large language model in watsonx.ai based on content from the product documentation. Learn more