FileOutputStream o = null; try { o = new FileOutputStream("/tmp/MeinDokument.sxw"); } catch (FileNotFoundException ex) { ex.printStackTrace(); } try { officeWriter1.saveToStream(o); o.close(); } catch (IOException ex1) { ex1.printStackTrace(); }