Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Databases > Re: Newbie - pr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 15 Topic 3678 of 3800
Post > Topic >>

Re: Newbie - problem accessing DB2 with Java program.

by zalek <zalekbloom@[EMAIL PROTECTED] > Mar 16, 2008 at 04:17 PM

On Mar 16, 6:49 pm, Arne Vajh=F8j <a...@[EMAIL PROTECTED]
> wrote:
> zalek wrote:
> > In my installation we have DB2 on a mainframe computer. I am able to
> > access DB2 from my PC (WinXP) using some utilities. I wrote a Java
> > program to access DB2, but I am getting errors.
> > After command:
> > Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
>
> > I am getting exception:
> > Exception java.lang.ClassNotFoundException:
> > COM.ibm.db2.jdbc.app.DB2Driver
>
> > I copied db2java.zip and db2jcc.jar files to a default directory of
> > JBuilder, even to the same directory where I have my program,  but it
> > did not help.
> > What I am doing wrong?
>
> You need to put the JDBC driver jar file in classpath. Just putting
> then in those directories does not put them in classpath.
>
> Arne

I tried - it did not help.
I am using JBuilder to write my program, so I moved db2java.zip and
db2jcc.jar to
C:\JBuilder2005\jdk1.4\bin and
C:\JBuilder2005\jdk1.4\lib

On top of it I found a directory in a classpath variable and move this
files to this directory - nothing helped. Still getting the same
error.

Zalek
 




 15 Posts in Topic:
Newbie - problem accessing DB2 with Java program.
zalek <zalekbloom@[EMA  2008-03-16 15:38:16 
Re: Newbie - problem accessing DB2 with Java program.
=?ISO-8859-1?Q?Arne_Vajh=  2008-03-16 18:49:23 
Re: Newbie - problem accessing DB2 with Java program.
zalek <zalekbloom@[EMA  2008-03-16 16:17:28 
Re: Newbie - problem accessing DB2 with Java program.
=?ISO-8859-1?Q?Arne_Vajh=  2008-03-16 19:21:19 
Re: Newbie - problem accessing DB2 with Java program.
zalek <zalekbloom@[EMA  2008-03-16 17:04:48 
Re: Newbie - problem accessing DB2 with Java program.
=?ISO-8859-1?Q?Arne_Vajh=  2008-03-16 22:05:51 
Re: Newbie - problem accessing DB2 with Java program.
davide.grandi@[EMAIL PROT  2008-03-17 01:16:35 
Re: Newbie - problem accessing DB2 with Java program.
Alex.From.Ohio.Java@[EMAI  2008-03-16 18:37:29 
Re: Newbie - problem accessing DB2 with Java program.
Lew <lew@[EMAIL PROTEC  2008-03-16 21:50:02 
Re: Newbie - problem accessing DB2 with Java program.
=?ISO-8859-1?Q?Arne_Vajh=  2008-03-16 22:17:27 
Re: Newbie - problem accessing DB2 with Java program.
zalek <zalekbloom@[EMA  2008-03-16 18:50:05 
Re: Newbie - problem accessing DB2 with Java program.
RedGrittyBrick <RedGri  2008-03-17 11:33:59 
Re: Newbie - problem accessing DB2 with Java program.
Lew <lew@[EMAIL PROTEC  2008-03-17 08:38:17 
Re: Newbie - problem accessing DB2 with Java program.
=?ISO-8859-1?Q?Arne_Vajh=  2008-03-17 20:36:17 
Re: Newbie - problem accessing DB2 with Java program.
zalek <zalekbloom@[EMA  2008-03-17 18:20:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:28:07 CDT 2008.