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 15 of 15 Topic 3678 of 3876
Post > Topic >>

Re: Newbie - problem accessing DB2 with Java program.

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

On Mar 16, 10:17 pm, Arne Vajh=F8j <a...@[EMAIL PROTECTED]
> wrote:
> Alex.From.Ohio.J...@[EMAIL PROTECTED]
 wrote:
> > Another very nice way to use cl***** (actually jar files) without
> > touching classpath is to put these jar files to the
$JAVA_HOME/jre/lib/
> > ext/ directory.
> > For example, in my case, when I put db2java.zip and
> > db2jcc.jar to the
> > "C:\Program Files\Java\jre1.6.0_03\lib\ext\"
> > it is available for any Java application.
>
> > Just make sure that you put these jar files to the Java what you use!
> > Or put it to the all Java installations on your computer if you are
> > not sure which one you use ;)
>
> Very bad way.
>
> Builds will break when Java is updated.
>
> It does not work with multiple versions of the same software.
>
> Etc..
>
> Arne

Guys,

Thanks to all for your help - Arne was 100% right  - it is my fault.
After receiving class not found conditions I copied db2java.zip and
db2jcc.jar to any possible directory - it does not help. I removed
these files, put to only 1 directory and using "properties" in
JBuilder I added pointed to this directory - and now my Java program
is working.
Thanks again!

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 Wed Dec 3 22:16:35 CST 2008.