Juliana Grossi
2007-08-29 19:08:24 UTC
I have a java application that has a connection to a DB2 instance using
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
I´m trying to upgrade this application to use java 5 64bit, so I have compiled the code using java 5 64bit installed in AIX 64bit environment. The DB2 instance is 32bit (v8.1 FP8) and cannot be migrated to a 64bit version. When I run the application, I get the following exception:
java.sql.SQLException: java.lang.UnsatisfiedLinkError: db2jdbc (No such file or directory)
at oem.edge.yldmgt.com.SimpleApplication.openConnection(SimpleApplication.java:351)
Note that if I use java 5 32bit to run it, I don´t get the error and if I remove the DB2 connection part from code, I don´t get the error either.
Does anybody know how I can use a 32bit DB2 instance successfully in a 64bit environment?
Thanks a lot!
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
I´m trying to upgrade this application to use java 5 64bit, so I have compiled the code using java 5 64bit installed in AIX 64bit environment. The DB2 instance is 32bit (v8.1 FP8) and cannot be migrated to a 64bit version. When I run the application, I get the following exception:
java.sql.SQLException: java.lang.UnsatisfiedLinkError: db2jdbc (No such file or directory)
at oem.edge.yldmgt.com.SimpleApplication.openConnection(SimpleApplication.java:351)
Note that if I use java 5 32bit to run it, I don´t get the error and if I remove the DB2 connection part from code, I don´t get the error either.
Does anybody know how I can use a 32bit DB2 instance successfully in a 64bit environment?
Thanks a lot!