473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 11657
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: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.