Guest User

Untitled

a guest
Dec 12th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public static boolean testLibrary() {
  2. try {
  3. @SuppressWarnings("unused")
  4. Class<?> cl = Class.forName("net.sf.dynamicreports.jasper.builder.JasperReportBuilder");
  5. BasicConfigurator.configure();
  6. } catch (ClassNotFoundException e1) { e1.printStackTrace(); Window.write("dynamicreports library not found"); Window.write(e1.getMessage()); return false; }
  7.  
  8. Window.write("library is installed.");
  9. System.out.println("dynamicreports library is found.");
  10. return true;
  11. }
Add Comment
Please, Sign In to add comment