-2

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?

Community
  • 1
  • 1
sancho
  • 598
  • 2
  • 8
  • 22
  • Possible duplicate of [Why does jExcelAPI dump warnings in stderr and how to stop this behaviour?](http://stackoverflow.com/questions/7860834/why-does-jexcelapi-dump-warnings-in-stderr-and-how-to-stop-this-behaviour) – Ferrybig Jan 15 '16 at 10:25

2 Answers2

0

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);
sancho
  • 598
  • 2
  • 8
  • 22
0

WorkbookSettings did not work for me but passing this argument to the JVM suppressed all warnings: -Djxl.nowarnings=true

mrcrag
  • 310
  • 3
  • 16