Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

I am unable to know how to get my SQL driver

 
Ranch Hand
Posts: 138
4
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys, I am trying to learn creating java apps that save data on SQL servers, I found this Tutorial I was following

I am stuck on this part in which I run the app and I get the following error:



I have no idea how to find my JDBC driver
 
Saloon Keeper
Posts: 6447
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you add the JDBC driver to the classpath? That's what steps 2 to 5 are about.
 
Marshal
Posts: 69426
276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please tell us how you downloaded and installed MySQL, and the driver. (Actually, you probably don't install drivers.)
 
Yosuf Ibrahim
Ranch Hand
Posts: 138
4
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did step 2 to 5 exactly as it said, I downloaded MySQL 8.0 from the website and i used the MySQL command line client and then i launch the workbench to make sure it has been made
 
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm... maybe we need to see the method common.AccessStudentsCalls.connectToDB().
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just have to ask, you also followed steps 7-13?  Did you add the Jar file to your classpath or module?
 
Marshal
Posts: 25594
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Yosuf Ibrahim wrote:I did step 2 to 5 exactly as it said, I downloaded MySQL 8.0 from the website and i used the MySQL command line client and then i launch the workbench to make sure it has been made



This does not tell us whether MySQL is actually running.
 
Rancher
Posts: 4577
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That error occurs before even trying to get to MySQL, so whether it was running or not you'd still get that error.
It's simply down to it not being on the runtime classpath.
 
Yosuf Ibrahim
Ranch Hand
Posts: 138
4
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Knute Snortum wrote:Just have to ask, you also followed steps 7-13?  Did you add the Jar file to your classpath or module?



I cant believe I missed all those steps lol, Thank you
 
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic