 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
JH Guest
|
Posted: Tue Jul 22, 2003 12:17 am Post subject: location of JDBC drivers? (JDK 1.4.1, Red Hat 9) |
|
|
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
|
Posted: Tue Jul 22, 2003 12:24 am Post subject: Re: location of JDBC drivers? (JDK 1.4.1, Red Hat 9) |
|
|
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
|
Posted: Tue Jul 22, 2003 3:59 pm Post subject: Re: location of JDBC drivers? (JDK 1.4.1, Red Hat 9) |
|
|
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
|
Posted: Tue Oct 28, 2003 6:06 pm Post subject: Re: location of JDBC drivers? (JDK 1.4.1, Red Hat 9) |
|
|
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 |
|
 |
|
|
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
|
|