• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CreateCoffees

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have the mySQL driver downloaded? If you do, do oyu have it in the appropriate directory?
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[halleluja,
the problem is fixed.
bernd
reply
    Bookmark Topic Watch Topic
  • New Topic