472,965 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,965 software developers and data experts.

cannot load jdbc driver

sea
I have DB2 UDB Workgroup version 7.2 -- the JDBC-ODBC bridge loads
perfectly fine but when I try to use JDBC I get an error, copying and
pasting below. I added db2java.zip and db2jdbc.dll to both the
classpath and path variables, still no luck. Anyone have any ideas
please? Thank you very much!

java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver

at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)

at java.lang.ClassLoader.loadClass(ClassLoader.java:2 97)

at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:286)

at java.lang.ClassLoader.loadClass(ClassLoader.java:2 53)

at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:313)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:120)

at db2jdbc.DB2Appl.<clinit>(DB2Appl.java:41)

java.sql.SQLException: No suitable driver

at java.sql.DriverManager.getConnection(DriverManager .java:537)

at java.sql.DriverManager.getConnection(DriverManager .java:177)

at db2jdbc.DB2Appl.main(DB2Appl.java:65)
Nov 12 '05 #1
2 11623
Which Java SDK are you using? (The Application Building Guide tells you how
to use the batch jobs usejdbc1 and usejdbc2 to control the SDK; DB2 V7.2 has
two built-in SDKs, Java 1.1.8 and Java 1.2.2. In addition, you can install
additional SDKs of your own; although unsupported, people do it.)

You might get better results if you put a copy of db2java.zip in your JRE
extensions directory, assuming you can find it ;-) I have multiple JREs on
my machine and figuring out which one is being used isn't always easy. If
you can do it though, your problem may go away. For what it's worth, I
haven't found it necessary to put copies of db2jdbc.dll anywhere to make
programs work.

Rhino

"sea" <se*****@hotmail.com> wrote in message
news:f8**************************@posting.google.c om...
I have DB2 UDB Workgroup version 7.2 -- the JDBC-ODBC bridge loads
perfectly fine but when I try to use JDBC I get an error, copying and
pasting below. I added db2java.zip and db2jdbc.dll to both the
classpath and path variables, still no luck. Anyone have any ideas
please? Thank you very much!

java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver

at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)

at java.lang.ClassLoader.loadClass(ClassLoader.java:2 97)

at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:286)

at java.lang.ClassLoader.loadClass(ClassLoader.java:2 53)

at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:313)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:120)

at db2jdbc.DB2Appl.<clinit>(DB2Appl.java:41)

java.sql.SQLException: No suitable driver

at java.sql.DriverManager.getConnection(DriverManager .java:537)

at java.sql.DriverManager.getConnection(DriverManager .java:177)

at db2jdbc.DB2Appl.main(DB2Appl.java:65)

Nov 12 '05 #2
Which Java SDK are you using? (The Application Building Guide tells you how
to use the batch jobs usejdbc1 and usejdbc2 to control the SDK; DB2 V7.2 has
two built-in SDKs, Java 1.1.8 and Java 1.2.2. In addition, you can install
additional SDKs of your own; although unsupported, people do it.)

You might get better results if you put a copy of db2java.zip in your JRE
extensions directory, assuming you can find it ;-) I have multiple JREs on
my machine and figuring out which one is being used isn't always easy. If
you can do it though, your problem may go away. For what it's worth, I
haven't found it necessary to put copies of db2jdbc.dll anywhere to make
programs work.

Rhino

"sea" <se*****@hotmail.com> wrote in message
news:f8**************************@posting.google.c om...
I have DB2 UDB Workgroup version 7.2 -- the JDBC-ODBC bridge loads
perfectly fine but when I try to use JDBC I get an error, copying and
pasting below. I added db2java.zip and db2jdbc.dll to both the
classpath and path variables, still no luck. Anyone have any ideas
please? Thank you very much!

java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver

at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)

at java.lang.ClassLoader.loadClass(ClassLoader.java:2 97)

at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:286)

at java.lang.ClassLoader.loadClass(ClassLoader.java:2 53)

at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:313)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:120)

at db2jdbc.DB2Appl.<clinit>(DB2Appl.java:41)

java.sql.SQLException: No suitable driver

at java.sql.DriverManager.getConnection(DriverManager .java:537)

at java.sql.DriverManager.getConnection(DriverManager .java:177)

at db2jdbc.DB2Appl.main(DB2Appl.java:65)

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: sufia | last post by:
hi, Everytime i try to run the following code (which is a part of my servlet): try { Class.forName( "oracle.jdbc.driver.OracleDriver" ); DriverManager.registerDriver(new...
3
by: David | last post by:
Hello all, I have been trying to use the OCI driver to connect to Oracle 9i, but have been getting the following error: java.sql.SQLException: Closed Connection at...
0
by: JohnLH | last post by:
Hi, I am having an issue with the LOAD DATA LOCAL FILE command on the latest 3.0.9 JDBC Driver. The command works on Windows, but doesn't seem to work on OSX and Linux. The error that I get on...
0
by: sea | last post by:
I have DB2 UDB Workgroup version 7.2 -- the JDBC-ODBC bridge loads perfectly fine but when I try to use JDBC I get an error, copying and pasting below. I added db2java.zip and db2jdbc.dll to both...
0
by: Bing | last post by:
Hi, I am configuring the same DB2 v8.1 JDBC universal driver (db2jcc.jar and db2jcc_license_cisuz.jar) from DB2 SP5 fix pack under WSAD 5.1.x environment and WebSphere application Server 5.0.2...
1
by: bruce_milner | last post by:
I am having a problem using DB2 for z/OS Visual Explain V8 for Windows. The error message is: Fail to load JDBC driver COM.ibm.db2.jdbc.app.DB2Driver I have un-installed/re-installed DB...
3
by: r_stringer66 | last post by:
Hi, I am trying to connect to a db2 database via a jdbc application and this is the following error I get: Exception : CLI0615E Error receiving from socket, server is not responding....
10
by: technocrat | last post by:
Hi, I am trying to declare and cursor and thn load from that cursor into another table. Since I have almost 4 million records, I cant do it without the cursor which reduces the time by almost...
1
by: rpm45tech | last post by:
Hi everyone. I'm deveolping in Java with DB2 running on Win XP and everything was working ok but then I installed Vista Ultimate and the application stopped working. This is the exception showed: ...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.