So, while running the compiled java file, jre is not able to find the mysql jdbc driver. I had the same problem, my code is below: In your code you are missing Class. How HashMap works in Java? For starting with eclipse http: I don’t know why it works well locally, I need your help, thank you so much!
|Date Added:||10 February 2013|
|File Size:||8.75 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
Interbase eption: No suitable driver
Go to the locations where jdk and jre are installed and paste the jar file in suitabl ext directory, for example in my case they are C: Registers the given driver with the DriverManager.
So, while running the compiled java file, jre is not able to find the mysql jdbc driver.
Copyright by Javin Paul I have not loaded the driver class, but it works locally, I can query the results from MySQL, however, it does not work when I deploy it to Tomcat, and the errors below occur:. Download the mysql jdbc driver and unzip suitabble If you have not. I added the Class. This question has been asked before and already has an answer.
Sign up using Facebook.
Rememeber to shutdown and restart IS afterwards. Prasad Khode 4, 9 30 It cant find your driver.
Home Questions Tags Users Unanswered. You have to load jdbc driver. Finally issue got resolvedi have changed my pom.
For starting with eclipse http: Chris Kenst 3, 16 Holger von Thomsen Joined: No suitable driver found for jdbc: It should work fine as in my case it was java.zql.sqlexception desired output.
Author Message Thu Jun 22, A newly-loaded driver class should call the method registerDriver to make itself known to the DriverManager.
Interbase java.sql.SQLException: No suitable driver
Driver” ; This is what you are missing to have everything working. No suitable driver found for jdbc: Hi I have required jar [db2jcc This seems to be working. Sabyasachi Mishra 1, 19