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 classpath problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-12-03, 08:55
SShetty SShetty is offline
Registered User
 
Join Date: Nov 2003
Location: India
Posts: 6
Java UDF classpath problem

Hi,

I'm using DB2 version 8.1 on AIX server.
I'm trying to access JMS classes in my Java UDF. Its saying 'Class not Found'. I tried sqlj.install_jar('<jms.jar path>','JMS'). Similarly I installed other jars like fscontext.jar and providerutil.jar. But the UDF is not able to locate the classes.
I tried to print the java classpath in the UDF. It prints only <jdk-path>(given as a dbm cfg parameter) classes like tools.jar,rt.jar and 3 extra jars(related to JDBC). I found that these 3 jars are specified in 'db2profile' file in 'sqllib' directory. So i tried to change this file and execute it. But without any effect.

Can anyone give tips on what could be the solution to this classpath problem?

Thanx
Anuj.
Reply With Quote
  #2 (permalink)  
Old 12-12-03, 10:56
jsander jsander is offline
Registered User
 
Join Date: Apr 2003
Posts: 191
Re: Java UDF classpath problem

Hi,

I would expect the changes to db2profile to come into effect if you restart the instance.

Johann

Quote:
Originally posted by SShetty
Hi,

I'm using DB2 version 8.1 on AIX server.
I'm trying to access JMS classes in my Java UDF. Its saying 'Class not Found'. I tried sqlj.install_jar('<jms.jar path>','JMS'). Similarly I installed other jars like fscontext.jar and providerutil.jar. But the UDF is not able to locate the classes.
I tried to print the java classpath in the UDF. It prints only <jdk-path>(given as a dbm cfg parameter) classes like tools.jar,rt.jar and 3 extra jars(related to JDBC). I found that these 3 jars are specified in 'db2profile' file in 'sqllib' directory. So i tried to change this file and execute it. But without any effect.

Can anyone give tips on what could be the solution to this classpath problem?

Thanx
Anuj.
Reply With Quote
  #3 (permalink)  
Old 12-13-03, 05:43
SShetty SShetty is offline
Registered User
 
Join Date: Nov 2003
Location: India
Posts: 6
Re: Java UDF classpath problem

I tried that also, but to no effect.
any other solutions?
Reply With Quote
  #4 (permalink)  
Old 12-15-03, 04:30
jsander jsander is offline
Registered User
 
Join Date: Apr 2003
Posts: 191
Re: Java UDF classpath problem

Hi,

so what about changing the dbm config?

Johann

Quote:
Originally posted by SShetty
I tried that also, but to no effect.
any other solutions?
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