Always getting the jxl.read.biff.BiffException: The input file was not found

2,687 views
Skip to first unread message

colakatti

unread,
Sep 30, 2010, 4:35:18 AM9/30/10
to vogella
Here is my code, very simple test

public void readReports() throws IOException, BiffException {
File f = new File("C:/Docs/test1.xls");
Workbook w = Workbook.getWorkbook(f);

Sheet s=w.getSheet(0);

System.out.println(s.getCell(0, 0));

The file exists and the cell is not empty, but I'm always getting the
errormessage mentioned above. I have read that this error is related
to using multiple sheets, but that doesn't seem accure now since I'm
using one single sheet. What I'm doing wrong?

Lars Vogel

unread,
Sep 30, 2010, 5:38:06 AM9/30/10
to vog...@googlegroups.com
Does http://www.vogella.de/articles/JavaExcel/article.html work for you?

2010/9/30 colakatti <cola...@hotmail.com>:

> --
> You received this message because you are subscribed to the Google Groups "vogella" group.
> To post to this group, send email to vog...@googlegroups.com.
> To unsubscribe from this group, send email to vogella+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/vogella?hl=en.
>
>

--
Lars
http://www.vogella.de - Tutorials about Java, Eclipse and Web programming
http://www.twitter.com/vogella - Lars on Twitter

colakatti

unread,
Oct 1, 2010, 2:16:10 AM10/1/10
to vogella
No, that does not work either. Same error message.

On 30 syys, 12:38, Lars Vogel <lars.vo...@googlemail.com> wrote:
> Doeshttp://www.vogella.de/articles/JavaExcel/article.htmlwork for you?
>
> 2010/9/30 colakatti <colaka...@hotmail.com>:
>
>
>
> > Here is my code, very simple test
>
> > public  void readReports() throws IOException, BiffException {
> > File f = new File("C:/Docs/test1.xls");
> > Workbook w = Workbook.getWorkbook(f);
>
> > Sheet s=w.getSheet(0);
>
> > System.out.println(s.getCell(0, 0));
>
> > The file exists and the cell is not empty, but I'm always getting the
> > errormessage mentioned above. I have read that this error is related
> > to using multiple sheets, but that doesn't seem accure now since I'm
> > using one single sheet. What I'm doing wrong?
>
> > --
> > You received this message because you are subscribed to the Google Groups "vogella" group.
> > To post to this group, send email to vog...@googlegroups.com.
> > To unsubscribe from this group, send email to vogella+u...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/vogella?hl=en.
>
> --
> Larshttp://www.vogella.de- Tutorials about Java, Eclipse and Web programminghttp://www.twitter.com/vogella- Lars on Twitter

colakatti

unread,
Oct 1, 2010, 2:34:31 AM10/1/10
to vogella
But when I deleted my file and created it again, it started to
work....Why's this?

On 1 loka, 09:16, colakatti <colaka...@hotmail.com> wrote:
> No, that does not work either. Same error message.
>
> On 30 syys, 12:38, Lars Vogel <lars.vo...@googlemail.com> wrote:
>
> > Doeshttp://www.vogella.de/articles/JavaExcel/article.htmlworkfor you?
>
> > 2010/9/30 colakatti <colaka...@hotmail.com>:
>
> > > Here is my code, very simple test
>
> > > public  void readReports() throws IOException, BiffException {
> > > File f = new File("C:/Docs/test1.xls");
> > > Workbook w = Workbook.getWorkbook(f);
>
> > > Sheet s=w.getSheet(0);
>
> > > System.out.println(s.getCell(0, 0));
>
> > > The file exists and the cell is not empty, but I'm always getting the
> > > errormessage mentioned above. I have read that this error is related
> > > to using multiple sheets, but that doesn't seem accure now since I'm
> > > using one single sheet. What I'm doing wrong?
>
> > > --
> > > You received this message because you are subscribed to the Google Groups "vogella" group.
> > > To post to this group, send email to vog...@googlegroups.com.
> > > To unsubscribe from this group, send email to vogella+u...@googlegroups.com.
> > > For more options, visit this group athttp://groups.google.com/group/vogella?hl=en.
>
> > --
> > Larshttp://www.vogella.de-Tutorials about Java, Eclipse and Web programminghttp://www.twitter.com/vogella-Lars on Twitter
Reply all
Reply to author
Forward
0 new messages