try { Class.forName("com.mysql.jdbc.Driver"); } catch(ClassNotFoundException exception) { System.out.println("An exception has occurred: "+exception.getMessage()); if(Constants.DEBUG) exception.printStackTrace(); }