Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / March 2004

Tip: Looking for answers? Try searching our database.

jdbc: MySQL Connector/J probleme

Thread view: 
Geiregat Jonas - 29 Mar 2004 20:08 GMT
I'm using MySQL Connector/J 3.0.11-stable,
My app compiles fine but when I run it I always get these errors:
java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(DriverManager.java:532)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
        at QueryApp2.main(QueryApp2.java:25)

I don't know what's wrong I've added the com and lib dir's to my
classpath also I've tryed to place the *jar file in
$JAVA_HOME/jre/lib/ext, but that didn't help.

The single source file is located at http://jonasg.ath.cx/jdbc
Herman Timmermans - 30 Mar 2004 08:52 GMT
> I'm using MySQL Connector/J 3.0.11-stable,
> My app compiles fine but when I run it I always get these errors:
[quoted text clipped - 8 lines]
>
> The single source file is located at http://jonasg.ath.cx/jdbc
Hi,
looking at your source i found that your url is wrong, it should be :
"jdbc:mysql://appel" .This of course in the understanding that you have your
server called appel, if you are running it on your local host just put
"jdbc:mysql://localhost"
This should solve your "No suitable driver" message.
Brgds,
Herman

Signature

Suse Linux Professional 8.1 on Athlon 1.1 Ghz 512 Mb
Anti Spam = remove the "dot" and the "at"
Registered Linux User #264690
Visit us : http://users.skynet.be/herman.timmermans



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.