• Post Reply Bookmark Topic Watch Topic
  • New Topic

no suitable driver found  RSS feed

 
farrukh raa
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
 
Tim Moores
Saloon Keeper
Posts: 3831
80
  • 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: 3831
80
  • 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.
 
Knute Snortum
Sheriff
Posts: 3967
97
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?
 
Dana Ucaed
Ranch Hand
Posts: 351
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!