I tried using the below function in my swing application and I got the error message in the title. This was strange to me as when running the exact same code on the Eclipse IDE, instead of NetBeans, the function executed perfectly. I believe I've installed the driver correctly as in the services tab I can see and access the data inside the MySQL table via a created Driver.
public void insert(String Item, String Size, int Price, String Details){
try{
con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/ddApp", "root", "****"); //stars replacing password
ps = con.prepareStatement("INSERT INTO ddApp.currentTable (item, size, price, description) VALUES (?, ?, ?, ?) ");
ps.setString(1, Item);
ps.setString(2, Size);
ps.setInt(3, Price);
ps.setString(4, Details);
ps.executeUpdate();
}catch(Exception ex){
JOptionPane.showMessageDialog(null, ex.getMessage());
}
}