There might be problem even after installing everything and doing all the coding of jdbc in ubuntu. So, the solution is : just download a mysql-connector.jar file and make your eclipse to point to it. for this: right click on project->properties->libraries here you should see that mysql connector jar. so, add it by clicking on "add external jar" Now, the project will run sound.
The blog will contain all the Technical knowledge I have to share and I welcome & would appreciate others for sharing their knowledge :0)