I am trying to write UDF using JAVA:
import COM.ibm.db2.app.*;
import COM.ibm.db2.jdbc.app.*;
import java.sql.*;
public class MyUdf extends UDF
{
public void myudf (String input, String output) throws SQLException,
Exception
{
/************************************************** **************
--> some dummy udf to output the input string
************************************************** **************/
String myString = input;
set (2, myString); // setting the output of the UDF
return;
} // end method
}
If I compile this, I am getting the error :
package COM.ibm.db2.app not found
package COM.ibm.db2.jdbc.app not found
I am using DB2 7.2 on AIX 5.2, and JDK1.1
My class path has been set properly.
What can be the problem