Re: classpath problem
- From: "printdude1968@xxxxxxxxx" <printdude1968@xxxxxxxxx>
- Date: 27 Apr 2007 13:42:44 -0700
On Apr 27, 5:24 pm, Lothar Kimmeringer <news200...@xxxxxxxxxxxxxx>
wrote:
Ravi wrote:
I complie the code with command 'javac First.class -classpath <full
path to the mysql-connector-java-3.1.14-bin.jar file>'
The problem is that I end up with the
error:java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
when I try to execute the class file.
You have to specify the same classpath when executing the
code, as well.
Regards, Lothar
--
Lothar Kimmeringer E-Mail: spamf...@xxxxxxxxxxxxxx
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)
Always remember: The answer is forty-two, there can only be wrong
questions!
Will it also work if he puts his Java Connector jar file in his lib/
ext directory like:
C:\Program Files\Java\jre1.6.0\lib\ext
.
- References:
- classpath problem
- From: Ravi
- Re: classpath problem
- From: Lothar Kimmeringer
- classpath problem
- Prev by Date: Re: classpath problem
- Next by Date: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
- Previous by thread: Re: classpath problem
- Next by thread: Re: classpath problem
- Index(es):
Relevant Pages
|
|