List of usage examples for java.util.logging Level SEVERE
Level SEVERE
To view the source code for java.util.logging Level SEVERE.
Click Source Link
From source file:com.googlecode.jgenhtml.JGenHtml.java
/** * Run jgenhtml.//from w ww .ja va2 s . c o m * @param argv Arguments (viewable by running with -h switch). */ public static void main(final String[] argv) { Config config = new Config(); try { config.initializeUserPrefs(argv); if (config.isHelp()) { config.showCmdLineHelp(); } else if (config.isVersion()) { System.out.println("jgenhtml version " + VERSION); } else { String[] traceFiles = config.getTraceFiles(); if (traceFiles.length > 0) { CoverageReport.setConfig(config); CoverageReport coverageReport = new CoverageReport(traceFiles); if (coverageReport.getPageCount() > 0) { LOGGER.log(Level.INFO, "Found {0} entries.", coverageReport.getPageCount()); coverageReport.generateReports(); } } else { LOGGER.log(Level.INFO, "jgenhtml: No filename specified"); LOGGER.log(Level.INFO, "Use jgenhtml --help to get usage information"); } } } catch (IOException ex) { LOGGER.log(Level.SEVERE, null, ex); } catch (ParserConfigurationException ex) { LOGGER.log(Level.SEVERE, null, ex); } catch (ParseException ex) { LOGGER.log(Level.WARNING, ex.getLocalizedMessage()); } }
From source file:avoking.com.documentos.scheduler.startup.Main.java
public static void main(String[] args) { // SplashWindow s = new SplashWindow("E:\\Documentos\\NetBeansProjects\\documentos.scheduler.core\\src\\main\\java\\avoking\\com\\documentos\\scheduler\\startup\\SplashScreen reducida.png", null, 10000); // s.setVisible(true); // //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> try {//from w w w. j a v a 2 s. c om UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } catch (Exception ex) { java.util.logging.Logger.getLogger(Main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> try { FileInputStream fis = new FileInputStream( "E:\\Avo-King\\Documentos\\Desarrollo\\PROCEDIMIENTO_Pruebas_RH\\PDRH-05.docx"); XWPFDocument xdoc = new XWPFDocument(OPCPackage.open(fis)); XWPFHeaderFooterPolicy policy = new XWPFHeaderFooterPolicy(xdoc); //read header XWPFHeader header = policy.getDefaultHeader(); System.out.println(StringEscapeUtils.escapeJava(header.getText())); // //read footer // XWPFFooter footer = policy.getDefaultFooter(); // System.out.println(footer.getText()); } catch (Exception ex) { ex.printStackTrace(); } // Main m = new Main(); // m.execute(); // splashLoading.getContentPane().setBackground(Color.WHITE); // splashLoading.pnlProgress.setBackground(Color.WHITE); // splashLoading.setLocationRelativeTo(null); // splashLoading.setVisible(true); }
From source file:GUI.ListOfOffres1.java
public static void main(final String[] args) { SwingUtilities.invokeLater(new Runnable() { @Override//from ww w . ja v a 2 s . c om public void run() { WebLookAndFeel.install(); WebLookAndFeel.setDecorateAllWindows(true); openPleaseWait(); try { openListOfOffresFrame(); } catch (IOException ex) { Logger.getLogger(ListOfOffres1.class.getName()).log(Level.SEVERE, null, ex); } } }); }
From source file:com.nubits.nubot.tests.TestRPC.java
public static void main(String[] args) { //Default values String custodian = Passwords.CUSTODIAN_PUBLIC_ADDRESS; String user = Passwords.NUD_RPC_USER; String pass = Passwords.NUD_RPC_PASS; double sell = 0; double buy = 0; //java -jar testRPC user pass custodian sell buy if (args.length == 5) { LOG.info("Reading input parameters"); user = args[0];//from w w w . j a v a 2 s. c om pass = args[1]; custodian = args[2]; sell = Double.parseDouble(args[3]); buy = Double.parseDouble(args[4]); } Utils.loadProperties("settings.properties"); TestRPC test = new TestRPC(); test.setup(Constant.INTERNAL_EXCHANGE_PEATIO, custodian, Constant.NBT_BTC, user, pass); test.testCheckNudTask(); try { Thread.sleep(2000); } catch (InterruptedException ex) { Logger.getLogger(TestRPC.class.getName()).log(Level.SEVERE, null, ex); } //test.testGetInfo(); //test.testIsConnected(); test.testSendLiquidityInfo(buy, sell, 1); //test.testGetLiquidityInfo(); //test.testGetLiquidityInfo(Constant.SELL, Passwords.CUSTODIA_PUBLIC_ADDRESS); //test.testGetLiquidityInfo(Constant.BUY, Passwords.CUSTODIA_PUBLIC_ADDRESS); System.exit(0); }
From source file:luceneindexdemo.LuceneIndexDemo.java
public static void main(String[] args) { try {//from w ww . j a va2 s . c o m // TODO code application logic here //int a=10; //System.out.println("Enter your user name: "); //createIndex(); searchIndex("i am feeling bored"); //System.out.println("rishav"+10); } catch (Exception ex) { Logger.getLogger(LuceneIndexDemo.class.getName()).log(Level.SEVERE, null, ex); } }
From source file:com.chigix.autosftp.Application.java
public static void main(String[] args) { Options options = new Options(); options.addOption(Option.builder("P").longOpt("port").hasArg().build()) .addOption(Option.builder("h").longOpt("help").desc("Print this message").build()) .addOption(Option.builder("i").argName("identity_file").hasArg().build()); int port = 22; CommandLine line;/*from w w w.ja v a2 s . c om*/ try { line = new DefaultParser().parse(options, args); } catch (UnrecognizedOptionException ex) { System.err.println(ex.getMessage()); return; } catch (ParseException ex) { Logger.getLogger(Application.class.getName()).log(Level.SEVERE, null, ex); return; } if (line.hasOption("help")) { HelpFormatter formatter = new HelpFormatter(); formatter.printHelp("autosftp /path/to/watch [user@]host2:[file2]", options, true); return; } String givenPort; if (line.hasOption("port") && StringUtils.isNumeric(givenPort = line.getOptionValue("port"))) { port = Integer.valueOf(givenPort); } if (line.getArgs().length < 0) { System.err.println("Please provide a path to watch."); return; } localPath = Paths.get(line.getArgs()[0]); if (line.getArgs().length < 1) { System.err.println("Please provide remote ssh information."); return; } SshAddressParser addressParse; try { addressParse = new SshAddressParser().parse(line.getArgs()[1]); } catch (SshAddressParser.InvalidAddressException ex) { System.err.println(ex.getMessage()); return; } if (addressParse.getDefaultDirectory() != null) { remotePath = Paths.get(addressParse.getDefaultDirectory()); } try { sshSession = new JSch().getSession(addressParse.getUsername(), addressParse.getHost(), port); } catch (JSchException ex) { Logger.getLogger(Application.class.getName()).log(Level.SEVERE, null, ex); return; } try { sshOpen(); } catch (JSchException ex) { Logger.getLogger(Application.class.getName()).log(Level.SEVERE, null, ex); sshClose(); } System.out.println("Remote Default Path: " + remotePath); Runtime.getRuntime().addShutdownHook(new Thread() { @Override public void run() { sshClose(); System.out.println("Bye~~~"); } }); try { watchDir(Paths.get(line.getArgs()[0])); } catch (Exception ex) { Logger.getLogger(Application.class.getName()).log(Level.SEVERE, null, ex); } }
From source file:Interface.Teste.java
public static void main(String[] args) { try {//from w w w . j a va 2 s. co m //Runtime.getRuntime().exec("cmd /c start Ajuda.pdf"); Runtime.getRuntime().exec( "cmd /c start C://Users//Junior//Documents//NetBeansProjects//SnackBar1//src//Interface//Ajuda.pdf"); } catch (IOException ex) { Logger.getLogger(Teste.class.getName()).log(Level.SEVERE, null, ex); } Teste t = new Teste(); t.setSize(600, 600); t.setVisible(true); t.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }
From source file:checkdb.CheckDb.java
/** * @param args the command line arguments *//*from w ww . j a va2 s . c o m*/ public static void main(String[] args) { try { CheckDb me = new CheckDb(); me.doAll(args); } catch (WebUtilException | SQLException | ClassNotFoundException | ViewConfigException ex) { Logger.getLogger(CheckDb.class.getName()).log(Level.SEVERE, null, ex); } }
From source file:net.jmhertlein.alphonseirc.MSTDeskEngRunner.java
public static void main(String[] args) { Scanner scan = new Scanner(System.in); loadConfig();/*from w w w. j a v a2 s . co m*/ AlphonseBot bot = new AlphonseBot(nick, pass, server, channels, maxXKCD, noVoiceNicks, masters, dadLeaveTimes); bot.setMessageDelay(500); try { bot.startConnection(); } catch (IOException | IrcException ex) { Logger.getLogger(MSTDeskEngRunner.class.getName()).log(Level.SEVERE, null, ex); } boolean quit = false; while (!quit) { String curLine = scan.nextLine(); switch (curLine) { case "exit": System.out.println("Quitting."); bot.onPreQuit(); bot.disconnect(); bot.dispose(); writeConfig(); quit = true; System.out.println("Quit'd."); break; case "msg": Scanner lineScan = new Scanner(scan.nextLine()); try { bot.sendMessage(lineScan.next(), lineScan.nextLine()); } catch (Exception e) { System.err.println(e.getClass().toString()); System.err.println("Not enough args"); } break; default: System.out.println("Invalid command."); } } }
From source file:barrysw19.calculon.fics.FICSInterface.java
public static void main(String[] args) throws Exception { if (System.getProperty("calculon.password") == null) { log.log(Level.SEVERE, "password must be specified."); System.exit(-1);/*from www . ja va2 s . c o m*/ } while (!shutdown) { try { new FICSInterface().connect(); } catch (Exception x) { log.log(Level.SEVERE, "Error", x); try { Thread.sleep(60000); } catch (InterruptedException ignored) { } } } }