title: Jxl did not create the file?
body: <p>I'm a newbie with Java. Please kindly help.</p>
  
  <p>So I'm using jxl for my project. On my laptop, the Excel file did get created with the data I wrote to it.
  But when I tried to use it on my client's computer, the excel was not created. 
  I used <code>JOptionPane.showMessageDialog</code> to indicate in which code the program stopped, and it turns out the program stopped at the:</p>
  
  <pre><code>workbook.write();
  </code></pre>
  
  <p>My code was like this:</p>
  
  <pre><code>File exlFile = new File("C:/Output/Excel Files/Reports.xls");
  WritableWorkbook workbook = Workbook.createWorkbook(exlFile);
  WritableSheet exchangeWrite = workbook.createSheet("EXCHANGE_RATE", 0);
  
  try{
  
      String sqlTakeExchange    = "select * from R_ExchangeRate";
      PreparedStatement psTakeExchange    = dbConn.prepareStatement(sqlTakeExchange);
      ResultSet rsTakeExchange            = psTakeExchange.executeQuery();
  
      Label   header = new Label(0, 0, "Ccy", headerFormat());exchangeWrite.addCell(header);
              header = new Label(1, 0, "Rate", headerFormat());exchangeWrite.addCell(header);
  
      int currentCol  = 1;
      while(rsTakeExchange.next()){
          for (int row = 0; row &lt; 2; row++){
              for (int col = 1; col &lt; 2; col++){
                  Label content = new Label(row, currentCol, rsTakeExchange.getString(row + 1), numberFormat());                            
                  exchangeWrite.addCell(content);
              }               
          } 
          currentCol++;
      }
      sheetAutoFitColumns(exchangeWrite);
  
  }catch(Exception ex){
      ex.getMessage();
      JOptionPane.showMessageDialog(null, ex.getMessage());
      ex.printStackTrace();
  }
  
  workbook.write();
  workbook.close();
  </code></pre>
  
  <p>On my laptop, the excel file contains data that I want with the right format I want.
  but on my client computer, it didn't create the file.</p>
  
  <p>I don't know if this helps, but my client uses:
  Intel Core 2 duo</p>
  
  <p>Windows XP Professional </p>
  
  <p>Microsoft Office 2007</p>
  
  <p>Java 6 update 26</p>
  
  <p>Ram 1Gb </p>
  
  <p>It's just a PC for any testing. And because my app doesn't require any high spec (just a mini tool to generate excel file from the database). I'm using Java 7 update 51.
  Also I have about 4 clients that are using my app. This jxl problem was only showing up on 1 client only, the other 3 did create the excel file.</p>
  
  <p>Any ideas how to solve this? Many thanks</p>
  
  <hr>
  
  <p>After some asking to my senior, it turns out that it's facing a problem with:</p>
  
  <pre><code>Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap spa
  ce
  </code></pre>
  
  <p>perhaps i'm gonna tweak the codes. </p>