HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Programming/Scripts (http://www.howtoforge.com/forums/forumdisplay.php?f=7)
-   -   java.sql.SQLException: No driver found (http://www.howtoforge.com/forums/showthread.php?t=50853)

newbie14 8th January 2011 20:57

java.sql.SQLException: No driver found
 
Dear All,
I have a java application which link to db on another computer on the local lan. The problem I have install jdk_1.6_21 without any problem. Then I have paste mysql-connector-java-5.1.14-bin.jar in /usr/java/jdk1.6.0_21/jre/lib/ext. When I compile my program has no problem when I try to run I get this error java.sql.SQLException: No driver found. I have been doing this method all this while it works suddenly this new machine have this problem. Any help please.My Os is centos 5.5.

nicephotog 24th September 2011 07:16

your driver .jar goes in common/lib of your server
http://javahowto.blogspot.com/2007/0...sharedlib.html

or more usually the WEB-INF/lib of the application .war that is using the servlet or .jsp page containing the driver loading code.
http://www.nicephotog-jsp.net/index.jsp?Pagecontent=3


All times are GMT +2. The time now is 09:07.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.