File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes CreateCoffees Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "CreateCoffees" Watch "CreateCoffees" New topic


bernd pier
Ranch Hand

Joined: Jun 21, 2002
Posts: 30
i`m just a newbee in java and database.
i work with suse 7.3, j2sdk1.4.0, mm.mysql driver and mysql.
on i found a java tutorial and follow the examples.but the first example CreateCoffees doesn`t work.
here is the code

when i run this program the following error comes:
linux:~/tomcat/webapps/examples/codeExamples/firstEdition # javac CreateCoffees.
linux:~/tomcat/webapps/examples/codeExamples/firstEdition # java CreateCoffees
SQLException: No suitable driver
linux:~/tomcat/webapps/examples/codeExamples/firstEdition #

is there anybody out there who have an idea?
thanks bernd
[ Edited by Dave to format code and highlight error ]
[ June 23, 2002: Message edited by: David O'Meara ]
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Do you have the mySQL driver downloaded? If you do, do oyu have it in the appropriate directory?

So much trouble in the world -- Bob Marley
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
bernd pier
Ranch Hand

Joined: Jun 21, 2002
Posts: 30
the problem is fixed.
I agree. Here's the link:
subject: CreateCoffees
It's not a secret anymore!