I hope you have added your MySQL Driver in Eclipse Build path. If not download the JDBC Driver for MySQL (Connector/J)and add in the Build path and try to run the program again. If the error still persists, it means your Java program is unable to load it during runtime. I suggest the following: 1)Go to your project Properties -> Run/Debug Settings 2)Select your class file from the Launch Configuration (if not available add manually clicking New->Java Application and provide your Main Class) 3) Click Edit->Classpath and select JRE System Library 4) Add External JAR and select the appropriate MySQL connector Jar File (for e.g., mysql-connector-java-5.1.34-bin.jar) 5) Execute the program, I hope the issue should be fixed now :) All the Best!! | 0 |
By: [email protected] On: Sat Feb 14 15:04:10 IST 2015 0 0 0 | 0 |
Are You Satisfied :0Yes0No |