Advertisement
Guest User

Android JDBC Driver Only Test

a guest
May 30th, 2012
4,326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. System.out.println("About to try instantiating driver");
  2.         try {
  3.             Class.forName("com.mysql.jdbc.Driver").newInstance();
  4.             this.setTitle("Driver instantiated");
  5.         } catch (ClassNotFoundException e) {
  6.             // TODO Auto-generated catch block
  7.             this.setTitle(".....Class com.mysql.jdbc.Driver not found!");
  8.             e.printStackTrace();
  9.         } catch (IllegalAccessException e) {
  10.             this.setTitle("Illegal access");
  11.             // TODO Auto-generated catch block
  12.             e.printStackTrace();
  13.         } catch (InstantiationException e) {
  14.             this.setTitle("instantiation exc eption");
  15.             // TODO Auto-generated catch block
  16.             e.printStackTrace();
  17.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement