I have a executable jar file which pop's up a GUI but while uploading GUI it should populate Data in a combo box with the help of MySql database but it doesn't it gives an error java.lang.ClassnotFoundException : com.mysql.jdbc.Driver, i no it's mysql driver i have downloaded it and added to classpath of System env but it still gives the exception. Even tried with giving classpath excplicitly java -classpath C:\mysql\mysql.jar -jar GUI.jar but while popuing up GUI it throws the exception. So guy's can you help me with this. Thank you.
With java.exe the -classpath option is IGNORED(no error messsage!!) when you use the -jar option. Change your commandline to NOT use the -jar option. IE use only the -classpath option and your starting class name.