AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

location of JDBC drivers? (JDK 1.4.1, Red Hat 9)

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
JH
Guest





PostPosted: Tue Jul 22, 2003 12:17 am    Post subject: location of JDBC drivers? (JDK 1.4.1, Red Hat 9) Reply with quote



Hi,

I recently upgraded from JDK 1.2. to 1.4.1 and my jdbc
programs won't execute anymore. I'm sure it's because
the location of the classes12.zip and the resulting CLASSPATH
are wrong. Can someone explain to me where the .zip file should
go? I've tried a number of places with the corresponding changes
to my CLASSPATH variable but I keep getting the error:

Exception in thread "main" java.lang.NoClassDefFoundError: JdbcTest/class

JdbcTest is the name of the program and it hasn't changed.
Also, what is the difference between a zip file and a jar
file and how do you convert between the two?

Thanks very much for any assistance ....

Jeff


Back to top
Lothar Kimmeringer
Guest





PostPosted: Tue Jul 22, 2003 12:24 am    Post subject: Re: location of JDBC drivers? (JDK 1.4.1, Red Hat 9) Reply with quote



On Tue, 22 Jul 2003 00:17:39 GMT, JH wrote:

Quote:
Exception in thread "main" java.lang.NoClassDefFoundError: JdbcTest/class

JdbcTest is the name of the program and it hasn't changed.

Then you should call the program

java JdbcTest

instead of

java JdbcTest.class


Regards, Lothar
--
Lothar Kimmeringer E-Mail: [email]spamfang (AT) kimmeringer (DOT) de[/email]
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
questions!

Back to top
Thomas Kellerer
Guest





PostPosted: Tue Jul 22, 2003 3:59 pm    Post subject: Re: location of JDBC drivers? (JDK 1.4.1, Red Hat 9) Reply with quote



JH schrieb:

Quote:
Hi,

Also, what is the difference between a zip file and a jar
file and how do you convert between the two?

No difference. You don't need to convert one into the other (if you want,

you can simply rename the .zip to .jar)

Thomas


Back to top
davidwilson
Guest





PostPosted: Tue Oct 28, 2003 6:06 pm    Post subject: Re: location of JDBC drivers? (JDK 1.4.1, Red Hat 9) Reply with quote


Did you get a fix for the above problem? I have exactly the same
problem - can you help?


--
Posted via http://dbforums.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.