I have facing the following error while compile my java code: TestServlet.java:28:error:unreported exception class not found exception; must be caught or declare be thrown Class.for name("com.mysql.jdbc.Driver");. as per my understanding the java runtime could not find the mysql-connxxx.jar file to load.the following steps i have tried: I haven't use any
ide to develop a .java file instead I used notepad and dropped the jfreechart.jar and jcommon.jar,also msql-connect-bin.jar files into tomcathome/lib folder. In command line navigate to my java file I have set my path=jdk location, and set class path=location of servlet-api.jar,jfreechart.jar, jcommon,mysqlconn-bin.jar(from tomcathome/lib dir),and executed javac TestServlet.java command in dos-command, and it throws filenotfoundexception. please let me know where I need to place mysql-conn-bin.jar to recognize java in runtime. please let me know I have missed anything in my steps. thanks in advance...