PDA

View Full Version : [ubuntu] install mysql-connector-java in 10.10



andru183
November 28th, 2010, 04:40 AM
I have spent an entire day trying to install mysql-connector-java for either netbeans or eclipse and to no avail, I've followed all sorts of guides and copied the most up to date version of the file to usr/share/lib and changed the class path to it. I've added the .jar to both programs libaries, I still get



Exception in thread "main" java.sql.SQLException: No suitable driver found for xxxxx



the issue stems from Class.forName("com.mysql.jdbc.Driver");

anyone of any help I will be so thankful for

andru183
November 28th, 2010, 07:48 PM
can anyone help?

lexqt
December 3rd, 2010, 09:44 PM
sudo apt-get install libmysql-java