title: Issue while running Java code through terminal
body: <p>I am trying to make sample program to ran excel (xlsx) spreadsheet and load the data in 2 dimensional array.I have Googled and found some good samples.
  But the problem i am facing is that it's not getting run through Terminal though it's working fine when i run the code from eclipse.</p>
  
  <p>Here i am attaching screen shot of error i am getting while running code through terminal :-</p>
  
  <p><a href="https://i.stack.imgur.com/0sABw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0sABw.png" alt="enter image description here"></a></p>
  
  <p>The code i am using is :-</p>
  
  <pre><code>    import java.io.FileInputStream;
  
  import org.apache.poi.xssf.usermodel.XSSFCell;
  import org.apache.poi.xssf.usermodel.XSSFRow;
  import org.apache.poi.xssf.usermodel.XSSFSheet;
  import org.apache.poi.xssf.usermodel.XSSFWorkbook;
  
  public class ExcelDemo {
  
      public static void main(String[] args) {
          ExcelDemo xread2 = new ExcelDemo();
      }
  
      public ExcelDemo() {
          getvalue_1();
      }
  
      public static void getvalue_1() {
          XSSFRow row;
          XSSFCell cell;
          String[][] value = null;
          double[][] nums = null;
  
          try {
              FileInputStream inputStream = new FileInputStream(
                      "/home/ravi/Desktop/abc/Firebase/sid.xlsx");
              XSSFWorkbook workbook = new XSSFWorkbook(inputStream);
              // get sheet number
              int sheetCn = workbook.getNumberOfSheets();
              for (int cn = 0; cn &lt; sheetCn; cn++) {
                  // get 0th sheet data
                  XSSFSheet sheet = workbook.getSheetAt(cn);
                  // get number of rows from sheet
                  int rows = sheet.getPhysicalNumberOfRows();
                  // get number of cell from row
                  int cells = sheet.getRow(cn).getPhysicalNumberOfCells();
                  value = new String[rows][cells];
                  for (int r = 0; r &lt; rows; r++) {
                      row = sheet.getRow(r); // bring row
                      if (row != null) {
                          for (int c = 0; c &lt; cells; c++) {
                              cell = row.getCell(c);
                              nums = new double[rows][cells];
                              if (cell != null) {
                                  switch (cell.getCellType()) {
                                  case XSSFCell.CELL_TYPE_FORMULA:
                                      value[r][c] = cell.getCellFormula();
                                      break;
  
                                  case XSSFCell.CELL_TYPE_NUMERIC:
                                      value[r][c] = ""
                                              + cell.getNumericCellValue();
                                      break;
  
                                  case XSSFCell.CELL_TYPE_STRING:
                                      value[r][c] = ""
                                              + cell.getStringCellValue();
                                      break;
  
                                  case XSSFCell.CELL_TYPE_BLANK:
                                      value[r][c] = "[BLANK]";
                                      break;
  
                                  case XSSFCell.CELL_TYPE_ERROR:
                                      value[r][c] = "" + cell.getErrorCellValue();
                                      break;
                                  default:
                                  }
                                  System.out.print(value[r][c]);
  
                              } else {
                                  System.out.print("[null]\t");
                              }
                          } // for(c)
                          System.out.print("\n");
                      }
                  } // for(r)
              }
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>Jars which i am using in this demo are as follows :-</p>
  
  <ol>
  <li>dom4j.jar</li>
  <li>poi-3.9.jar</li>
  <li>poi-ooxml-3.5-FINAL.jar</li>
  <li>poi-ooxml-schemas-3.7-beta1.jar</li>
  <li>xmlbeans-2.6.0.jar</li>
  </ol>
  
  <p>Any help will be appreciated,</p>
  
  <p>Thanks.</p>