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 problem with DB2 V8.1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-12-04, 21:20
cgprakash cgprakash is offline
Registered User
 
Join Date: Feb 2002
Posts: 96
Java problem with DB2 V8.1

OS : AIX 5.1.0
DB2 : V8.1 FP3

Recently we upgraded our DB2 from V7.2 to V8.1.
When we upgrade DB2, java also upgraded to V1.3.1 from V1.1.8.
After this, we do not want to recompile our java programs(in application), which was compiled initially by V1.1.8.

Is it possible? I was thinking of putting the old sqllib path in CLASSPATH. But i am not sure, how to acheive this??

Could someone help me?
Reply With Quote
  #2 (permalink)  
Old 02-13-04, 03:01
RKrick RKrick is offline
Registered User
 
Join Date: Feb 2002
Location: Germany
Posts: 141
Re: Java problem with DB2 V8.1

Java should be backwards compatible, i.e., the programs you've compiled with 1.1.8 should run in a JVM 1.3. To avoid "bad surprises", you should define a "Test Suite" for your Java Stored Procedures (with JUnit, for example), so that you can check your system everytime you change something.

HTH,
__________________
Rodney Krick
Reply With Quote
  #3 (permalink)  
Old 02-13-04, 03:09
cgprakash cgprakash is offline
Registered User
 
Join Date: Feb 2002
Posts: 96
Thanks for your help.

But we are getting the following error.

java.lang.NoClassDefFoundError: java/security/PrivilegedAction
at COM.ibm.db2.jdbc.app.DB2Driver.<init>(Compiled Code)
at
....

We are running
java full version "JDK 1.1.8 IBM build a118-20000210 (JIT enabled: jitc V3.1-JDK1.1-20000210)"

In our CLASSPATH, we have included:
/cvsinst/sqllib/java/db2java.zip:/cvsinst/sqllib/java/db2jcc.jar:/cvsinst/sqllib/java/sqlj.zip:/cvsinst/sqllib/function:/cvsinst/sqllib/java/db2jcc_license_cisuz.jar:/cvsinst/sqllib/java/db2jcc_license_cu.jar

Any idea about this?
Reply With Quote
  #4 (permalink)  
Old 02-17-04, 22:01
john99 john99 is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
I am also encountering the same error. How to overcome this?
Reply With Quote
  #5 (permalink)  
Old 02-18-04, 01:10
db2nemo db2nemo is offline
Registered User
 
Join Date: Jan 2004
Location: Canada
Posts: 12
You may want to check the value of JDK_PATH in the dbm parameter, to see if it is pointing to the correct directory.

Do a db2 get dbm cfg | grep JDK_PATH to see what the value is set to.
and use db2 update dbm cfg using JDK_PATH <jdk_131_location> to update the value if it is incorrect.


Quote:
Originally posted by john99
I am also encountering the same error. How to overcome this?
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