title: illegal forward reference in java
body: <pre><code> import java.io.*;
   import jxl.*;
   class Xlparsing
   {
     Workbook wb =wb.getWorkbook(new File(
      "C:\\Documents and Settings\\kmoorthi\\Desktop\\ak\\new.xls"));
     // Illegal forward reference What it means
     Sheet st = wb.getSheet(0);
     Cell cell1 = st.getCell(0,0);
     String a1 = cell1.getContents();
     public static void main(String s[])
     {
       System.out.println(new Xlparsing().a1);
     }
   }
  </code></pre>
  
  <p>Hi When I tried to extract data from excel sheet illegal forward reference error comes in the file object creation.</p>
  
  <p>How to resolve this?</p>