Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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: 4690
117
  • 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: 4690
117
  • 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: 5028
138
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: 442
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!