If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Java Udf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-05, 19:54
allian allian is offline
Registered User
 
Join Date: Dec 2004
Posts: 54
Java Udf

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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On