The Java language environment requires some additional set up before you can call functions from a macro:
java -classpath %CLASSPATH%;C:\DB2WWW\Javaclas dtw_samp %1 %2 %3 %4 %5 %6
CLIETTE DTW_JAVAPPS{ MIN_PROCESS=1 <= Required: this value must be 1 because the JAVAPPS cliette is multi-threaded. MAX_PROCESS=1 <= Required: this value must be 1 because the JAVAPPS cliette is multi-threaded. EXEC_NAME=launchjv.bat <= The name of the batch file that includes the classpath statements }
When you start the Net.Data Connection Manager, Net.Data starts the Java cliette specified in the configuration file. The cliette becomes available to process Java language environment requests from your Net.Data macro applications.
ENVIRONMENT DTW_JAVAPPS ( OUT RETURN_CODE ) CLIETTE "DTW_JAVAPPS"