Results 1 to 4 of 4

Thread: Reading Excel with Java

  1. #1
    Senior Member
    Join Date
    Jul 2005
    Posts
    277

    Reading Excel with Java

    I am trying to read the cells of an Excel file using Java.

    When I execute the attached code- I get this error:

    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    Default constructor cannot handle exception type BiffException thrown by implicit super constructor.Must define an explicit constructor.
    Default constructor cannot handle exception type IOException thrown by implicit super constructor. Must define an explicit constructor.

    The error highlights the Workbook workbook= line

    I have no idea what that means. Any suggestions would be greatly accepted!!!
    Difficult takes a day, Impossible takes a week~Kthln01!

  2. #2
    Senior Member
    Join Date
    Jun 2003
    Posts
    772
    Is jxl archive a standard archive?

    Perhaps the code in the archive is messed up, or perhaps it was written some years back so it is incompatible with newer excel files. Try it with an excel 95 file or something.
    The above sentences are produced by the propaganda and indoctrination of people manipulating my mind since 1987, hence, I cannot be held responsible for this post\'s content - me

    www.elhalf.com

  3. #3
    Senior Member
    Join Date
    Jul 2005
    Posts
    277
    it turned out that I needed to try,catch
    an io and biff exception.

    dont really know why, but now the program runs.

    thanx anyway!
    Difficult takes a day, Impossible takes a week~Kthln01!

  4. #4
    Senior Member
    Join Date
    Jun 2003
    Posts
    772
    it turned out that I needed to try,catch
    an io and biff exception.
    Lol, I thought so first but then thought that kind of error gave different compilation error output
    The above sentences are produced by the propaganda and indoctrination of people manipulating my mind since 1987, hence, I cannot be held responsible for this post\'s content - me

    www.elhalf.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •