harsha
Posts: 16
|
Posted: 10/04/2007, 9:32 PM |
|
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
please let me know how to set the classpath and also wat to download to exceute my programme
|
|
|
sonic
Posts: 8
|
Posted: 10/04/2007, 11:44 PM |
|
Hi, Harsha! You need to download MySQL connector for Java by this link: http://mirrors.uol.com.br/pub/mysql/downloads/connector/j/5.0.html
"Source and Binaries (zip) 5.0.7 8.3M"
Save the download file, mysql-connector-java-5.0.7.zip, to a temporary directory. The file size is about 8.5MB.
Unzip it to folder C:\Program Files\mysql-connector-java-5.0.7
Then if you use Apache Tomcat 5, copy file mysql-connector-java-5.0.7-bin.jar to folder: %Apache_HOME%\Common\lib
Else if don't use Apache Tomcat 5, just set to the classcath in projectsettings mysql-connector-java-5.0.7-bin.jar.
That's all.
|
|
|
harsha
Posts: 16
|
Posted: 10/05/2007, 12:38 AM |
|
now it still shows the same exception. and now am not able to get the class file of my java programme. Its not able to import anyof these import statements. Please tell me also how to get the connection from data base. am doing the from passed two weeks.
|
|
|
harsha
Posts: 16
|
Posted: 10/05/2007, 3:29 AM |
|
Am not able to import packages such as javax.servlet and many others . Please advice me how to correct all these. These i get during the compilation time.
But before this i was able to import suddenly wen i compiled again i was not able to import. Please help.
thanks in advance
|
|
|
sonic
Posts: 8
|
Posted: 10/05/2007, 4:19 AM |
|
You do this all in CCS? Or in some another place< for example in Eclipse?
|
|
|