JDBC3 maven test 시 Error : maven java.lang.ClassNotFoundException: com.mysql.jdbc.Driver $JAVA_HOME/jre/lib/ext/에 jdbc connect library를 넣어주면 된다. 2016. 9. 19. mysql jdbc test code import java.sql.DriverManager;import java.sql.Connection;import java.sql.SQLException; public class JDBCExample { public static void main(String[] argv) { System.out.println("-------- MySQL JDBC Connection Testing ------------"); try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e) { System.out.println("Where is your MySQL JDBC Driver?"); e.printStackTrace(); return; .. 2016. 7. 28. postgresql jdbc test code import java.sql.DriverManager;import java.sql.Connection;import java.sql.SQLException; public class Example1 { public static void main(String[] argv) { System.out.println("Checking if Driver is registered with DriverManager."); try { Class.forName("org.postgresql.Driver"); } catch (ClassNotFoundException cnfe) { System.out.println("Couldn't find the driver!"); System.out.println("Let's print a s.. 2016. 7. 25. 이전 1 다음