0 / 0
Compiling the Java code (Java Integration stage in DataStage)

Compiling the Java code (Java Integration stage in DataStage)

After creating your Java™ code, you must compile the Java code and optionally, you may create a JAR file for deployment.

Procedure

  1. Compile your Java code with ccjava-api.jar, using the following command:
    javac -cp .;.\jars\ccjava-api.jar samples\SimplePeek.java
  2. Create a jar file for deployment, using the following command:
    jar -cvf .\jars\samples.jar samples\SimplePeek.class
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