Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

no suitable driver found  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

why do i get the error no suitable driver found as jdbc derby driver is already installed and if i   go to services tab and create a driver and test connection .  it says connection successful but when i write above url of crm database i get error.  anyone please help
 
Saloon Keeper
Posts: 5024
134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what the "services tab" is, but all applications that want to use the driver need to have it in their classpath. Did you add the Derby jar file to the classpath you're using to run the above code?
 
farrukh raa
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:I don't know what the "services tab" is, but all applications that want to use the driver need to have it in their classpath. Did you add the Derby jar file to the classpath you're using to run the above code?



no i do not have jar file in class path.  how can i add the jar file in class path?
 
Tim Moores
Saloon Keeper
Posts: 5024
134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the derby jar file is somewhere in the JRE directory. You would add it to the classpath like any other jar file.
 
Sheriff
Posts: 5443
147
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you execute the above code?  An IDE?  Which one?  From the command line?  What's the command?
 
Ranch Hand
Posts: 451
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have JDBC driver 4.0 you don't need to use ClassForName.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!