tab, you can import Java packages for active or passive Java transformations.
You can import third-party, built-in, or custom Java packages. After you import Java packages, you can use the imported packages on the other code entry tabs.
On the
Imports
tab, you cannot declare or use static variables, instance variables, or user methods.
In the
Developer tool
, when you export or import metadata that contains a Java transformation, the jar or class files that contain the third-party or custom packages required by the Java transformation are not included in the export or import.
If you import metadata that contains a Java transformation, you must copy the jar or class files that contain the required third-party or custom packages to the
Developer tool client and Data Integration Service node
.
For example, to import the Java I/O package, enter the following code on the
Imports
tab:
import java.io.*;
When you import non-standard Java packages, add the package or class to the classpath in the Java transformation.