Domino 9 und frühere Versionen > Entwicklung
JDK incompatibility for DB2 jdbc driver
(1/1)
Toma Bogdan:
Hi
I try to connect to db2 from a java agent using db2java.zip jdbc driver in notes 5 client.
the code is
--- Code: ---DriverManager.registerDriver((Driver)Class.forName("COM.ibm.db2.jdbc.net.DB2Driver").newInstance());
Connection connection = DriverManager.getConnection(url,username, password);
--- Ende Code ---
At runtime I get the error :
--- Code: ---java.lang.NoClassDefFoundError: java/security/PrivilegedExceptionAction ???
--- Ende Code ---
I check the rt.jar and PrivilegedExceptionAction
is not there. The same code work fine in notes 6 with the same driver (for notes 6 rt.jar contains PrivilegedExceptionAction class) :o
Can someone tell me if there is different versions for db2java.zip driver compatible with jdk 1.1 used in domino5?
Thanks
Hernan Cortez:
whats your db2 version ???
Db2 Vs.7 had java1.1 support enabled as default.
One had to run some batch file to change that.
Could be, that DB2 Vs.8 ships with Java1.2 support enabled and one has to switch back to Java1.1 support?
So it might be good idea to check your db2 documentation.
regards
Axel
Toma Bogdan:
the DB2 version is 8.1
how can I make a switch back in DB2 ?
Hernan Cortez:
I've checked on another box where I have istalled db2 v.8 and it looks different from 7.1.
Frankly, I have no idea. Try IBM db2 forums or Notes.net forums.
If you get some result, please post here. I am interested.
regards
no time Axel
Hernan Cortez:
I've did another 20 minutes check without getting a clue.
Maybe DB2 8 simply does not support Java1.1. Why should they support prehistoric versions anyway? Java2 came out in 1999. 1.0 release in Java was in 1996. We are in 2006. Only because those brainies from Iris did not spend Domino5 Java2 support in some 5.xx release?
What about downloading DB2 7.2. It has Java1.1 enabled and you can switch version with some batch files in Java directory.
I am about to visit Edbrill.com to see the website of an evil man. Then @home.
good night
Axel
Navigation
[0] Themen-Index
Zur normalen Ansicht wechseln