public class DonjonBdB{ Connection cnx = DriverManager.getConnection( "jdbc:mariadb://dwarves.iut-fbleau.fr/elhaddad", "elhaddad", "NassimPHP77550"); try{ Class.forName("org.mariadb.jdbc.Driver"); }catch(ClassNotFoundException); }