> i have downloaded "mysql-connector-java-5.1.6.tar" and the related
> connecter for java and set the class path , my programa compiled well
[quoted text clipped - 16 lines]
>
> thanks
You don't have the *jar* file in the classpath. Your program will compile
well without the driver because it's loaded by name.
Best regards,
Leonard

Signature
Simplicity is the ultimate sophistication.
-- Leonardo da Vinci
Lew - 30 Apr 2008 02:37 GMT
focode wrote:
>> i [sic] have downloaded "mysql-connector-java-5.1.6.tar" and the related
>> connecter for java [sic] and set the class path , my programa compiled well
>> but it reported error class not found exception then preceded
In general you'll do better if you copy-and-paste compiler errors and
exception messages and the like literally, although in this case the message
is clear enough to relax the advice a tad.
> You don't have the *jar* file in the classpath. Your program will compile
> well without the driver because it's loaded by name.
For how to set the classpath:
<http://java.sun.com/javase/6/docs/technotes/tools/solaris/classpath.html>

Signature
Lew