LineNumberTable LocalVariableTable this
LJDBCExample; main ([Ljava/lang/String;)V java/lang/System out Ljava/io/PrintStream; 8-------- PostgreSQL JDBC Connection Testing ------------
java/io/PrintStream println (Ljava/lang/String;)V org.postgresql.Driver
! # " java/lang/Class $ % forName %(Ljava/lang/String;)Ljava/lang/Class; ' CWhere is your PostgreSQL JDBC Driver? Include in your library path!
) + * java/lang/ClassNotFoundException , printStackTrace . "PostgreSQL JDBC Driver Registered! 0 2jdbc:postgresql://127.0.0.1:5432/contractDashboard 2 postgres 4 snmc
6 8 7 java/sql/DriverManager 9 :
getConnection M(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection; < 'Connection Failed! Check output console
> |