Also another way to verify if this class exists in mysql.jar is running this command jar tf mysql.jar . Could you please check com.mysql.jdbc.Driver class shows up in that list?
–
CoolBeansFeb 5 '11 at 4:56

Hi, thanks for explaining. All the required classes are there. It works fine inside the window/eclipse. As soon as i export as jar and run on linux it creates problems. I am using mysql-connector-java-5.1.14-bin.jar
–
TweetFeb 5 '11 at 5:01

Alright. Did you rename mysql-connector-java-5.1.14-bin.jar to mysql.jar? Secondly, how did you export the jar file from eclipse? What options did you pick?
–
CoolBeansFeb 5 '11 at 5:03