public void write(int row1, int cell1, String message, String sheet1) throws Throwable {
String path = ".\\resources\\APItestdata.xlsx";
FileInputStream fis = new FileInputStream(path);
//File fis=new File(path);
Workbook wb = WorkbookFactory.create(fis);
Sheet sh = wb.getSheet(sheet1);
Row r = sh.getRow(row1);
Cell c = r.createCell(cell1);
c.setCellValue(message);
FileOutputStream fos = new FileOutputStream(path);
wb.write(fos);
wb.close();
}