Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CreateCoffees

 
bernd pier
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have the mySQL driver downloaded? If you do, do oyu have it in the appropriate directory?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[halleluja,
the problem is fixed.
bernd
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic