Connecting Tech Pros Worldwide Help | Site Map

IBM DB2 Universal driver (JCC) not found

  #1  
Old February 8th, 2006, 04:24 PM
Newbie
 
Join Date: Feb 2006
Posts: 2
Hi ,

I am trying to connect to my database through the development centre.
In the database connection wizard i m using the followin information

Driver : IBM DB2 universal type 2

Database name

location : jdbc:db2:databasename

Driver Class: com.ibm.db2.jcc.DB2Driver


When i try to connect to the database it shows an error message stating that

connection to database failed
IBM DB2 universal driver (JCC) not found.


Please suggest some solution over this.
Have i missed something in the db2 installation ?



Thanks&Regards
Abhijeet
  #2  
Old February 9th, 2006, 07:08 AM
Newbie
 
Join Date: Feb 2006
Posts: 3

re: IBM DB2 Universal driver (JCC) not found


I assume you did not set the environment variable correctly.Pls check the "CLASSPATH" variable on Windows and run you java application with -cp variable on Unix.
For example:
java -cp {DB2HOME}/sqllib/java/db2jcc.jar JavaClassName
Try it.
  #3  
Old October 3rd, 2008, 07:17 PM
Newbie
 
Join Date: Oct 2008
Posts: 1

re: IBM DB2 Universal driver (JCC) not found


Quote:
Originally Posted by kim_jin
I assume you did not set the environment variable correctly.Pls check the "CLASSPATH" variable on Windows and run you java application with -cp variable on Unix.
For example:
java -cp {DB2HOME}/sqllib/java/db2jcc.jar JavaClassName
Try it.
what should be there in the java class path and class name.
is it the same you have given above or it is system dependent.
  #4  
Old October 4th, 2008, 02:53 PM
Newbie
 
Join Date: Feb 2008
Posts: 16

re: IBM DB2 Universal driver (JCC) not found


hi

i can't understand what is 'Development centre',.... but i'm using eclipse in that i simple include(import) the mentioned file(mentioned in post #2) to my project... after that it won't tell an error message
(before that me too had the same problem in eclipse.)
  #5  
Old June 19th, 2009, 10:10 PM
Newbie
 
Join Date: Jun 2009
Posts: 1

re: IBM DB2 Universal driver (JCC) not found


Ok if you are using eclipse for to excute Jython there are a few things to need to do.

Right click on your project and select properties in the list
Then click on PyDev - PythonPath
in the box for External Source Folders
Add db2jcc.jar and
Add db2cc_license_cr.jar filles
and click ok.

Last edited by hbwilly54; June 19th, 2009 at 10:13 PM. Reason: spelling
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
JDBC type 4 driver for DB2 v7.1 Anoop answers 3 June 22nd, 2007 03:55 PM
Schemacrawler and DB2 Marc Schoechlin answers 3 December 16th, 2006 01:15 AM
Problems with DB2 type 4 driver Tom Davies answers 1 November 12th, 2005 07:34 AM
Severe Problem using JDBC PreparedStatement with IBM DB2 Universal JDBC Driver as Type 4 Dani answers 4 November 12th, 2005 06:57 AM