javaloggingjexcelapi

How to stop jExcelAPI warnings in stderr


When I use jxl api and during read the content of .xls file the api print lots of warning messages to standard output. Is there any way to stop this function? This question is the same Why does jExcelAPI dump warnings in stderr and how to stop this behaviour?


Solution

  • Finally I found the solution. For more information please check disable jxl library warnings

    File myfile = new File("...");
    WorkbookSettings settings = new WorkbookSettings();
    settings.setSuppressWarnings(true);
    Workbook workbook = Workbook.getWorkbook(myfile, settings);