Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println("About to try instantiating driver");
- try {
- Class.forName("com.mysql.jdbc.Driver").newInstance();
- this.setTitle("Driver instantiated");
- } catch (ClassNotFoundException e) {
- // TODO Auto-generated catch block
- this.setTitle(".....Class com.mysql.jdbc.Driver not found!");
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- this.setTitle("Illegal access");
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (InstantiationException e) {
- this.setTitle("instantiation exc eption");
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement