Пример #1
0
 public static void main(String args[]) {
   // INFO: Unter MacOsx muss jar wie folgt gestartet werden: java
   // -XstartOnFirstThread -jar
   try {
     if (!ArrayUtils.isEmpty(args) && !args[0].equals("-debug")) {
       BeeLogger.removeConsoleHandler();
     }
     logger.info("xdccBee start");
     window = new Application();
     window.setBlockOnOpen(true);
     window.open();
     if (Display.getCurrent() != null && !Display.getCurrent().isDisposed()) {
       Display.getCurrent().dispose();
     }
   } catch (Exception e) {
     BeeLogger.exception(e);
     throw new RuntimeException(e);
   }
   System.exit(0);
 }