package nas.components.nruf; import org.apache.poi.poifs.filesystem.*; import java.io.*; import org.apache.poi.hssf.usermodel.*; public class poi25test { public static void main(String[] args) throws Exception { String filename = args[0]; FileInputStream inputStream = new FileInputStream(filename); POIFSFileSystem fs = new POIFSFileSystem(inputStream); HSSFWorkbook wb = new HSSFWorkbook(fs); HSSFSheet sheet = wb.getSheet("Main menu"); HSSFRow row = sheet.getRow(4); HSSFCell cell = row.getCell( (short) 0); String version = cell.getStringCellValue(); System.out.println("Version found: " + version); } }