“No suitable driver found” when running from JAR [duplicate]
This question already has an answer here: UCanAccess driver not found when converted to JAR file 2 answers I have developed a small game in which the text input by the user needs to be posted in a MS Access Database. It all works fine in NetBeans but whenever I access it from the JAR file (which is ultimately what I need to hand to my client), it does not post anything to the database. In fact it returns the following error: java.sql.SQLException: No suitable driver found for jdbc:ucanaccess://C:\Users\Paul\Desktop\Spelli\RispostiDB.mdb This is the relevant code: public void postAnsDB() {