File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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
Bookmark "CreateCoffees" Watch "CreateCoffees" New topic
Author

CreateCoffees

bernd pier
Ranch Hand

Joined: Jun 21, 2002
Posts: 30
hey,
i`m just a newbee in java and database.
i work with suse 7.3, j2sdk1.4.0, mm.mysql driver and mysql.
on java.sun.com 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.
java
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?


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"beatles",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
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.
Thanks.
Dave
bernd pier
Ranch Hand

Joined: Jun 21, 2002
Posts: 30
[halleluja,
the problem is fixed.
bernd
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CreateCoffees
 
Similar Threads
What's wrong with this code?
No Suitible Driver Error
Class.forName() for drive using Oracle 8i
Access to the Oracle database using Java Applets
Error in connection