facciamo così, visto che l'eccezione sollevata non ha niente a che vedere, apparentemente, con quelle che cerchi di catturare tu - e quindi è annidata da qualche altra parte...
codice:public static void readEmail() throws IOException, BiffException { try { Workbook wb = Workbook.getWorkbook(new File("/home/matte/Desktop/email.xls")); Sheet sh = wb.getSheet(0); Cell cl = null; for (int i = 0; i < 100; i++) { if (!"".equals((sh.getCell(0, i)).getContents())) { cl = sh.getCell(0, i); } } String address = cl.getContents(); System.out.println(address); wb.close(); } catch (Exception e) { e.printStackTrace(); } }

Rispondi quotando