You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Lo...@log-net.com on 2010/09/16 13:30:36 UTC

compile examples under 3.6

I'm running into an issue trying to compile the examples under POI 3.6:

    [javac] business\freightbidding\BusinessPlan.java:67: incompatible 
types
    [javac] found   : org.apache.poi.hssf.usermodel.HSSFWorkbook
    [javac] required: org.apache.poi.ss.usermodel.Workbook
    [javac]         if(args.length > 0 && args[0].equals("-xls")) wb = new 
HSSFWorkbook();
    [javac]                                                            ^


Did the structure change?  Has anyone else gotten this error?

Thanks,
Lou

Re: compile examples under 3.6

Posted by Lo...@log-net.com.
Nick:

Bingo - another dev was using a very old version of POI and it was earlier 
in the classpath.

You're two-for-two - thanks alot for the help.

-Lou


Nick Burch <ni...@alfresco.com> wrote on 09/16/2010 07:35:25 AM:

> On Thu, 16 Sep 2010, Louis.Masters@log-net.com wrote:
> > I'm running into an issue trying to compile the examples under POI 
3.6:
> >
> >    [javac] business\freightbidding\BusinessPlan.java:67: incompatible
> > types
> >    [javac] found   : org.apache.poi.hssf.usermodel.HSSFWorkbook
> >    [javac] required: org.apache.poi.ss.usermodel.Workbook
> >    [javac]         if(args.length > 0 && args[0].equals("-xls")) wb = 
new
> > HSSFWorkbook();
> >    [javac] ^
> 
> HSSFWorkbook is a Workbook. You almost certainly have multiple copies of 

> POI on your classpath. See the FAQ on the website for how to locate them
> 
> Nick
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
> 

Re: compile examples under 3.6

Posted by Nick Burch <ni...@alfresco.com>.
On Thu, 16 Sep 2010, Louis.Masters@log-net.com wrote:
> I'm running into an issue trying to compile the examples under POI 3.6:
>
>    [javac] business\freightbidding\BusinessPlan.java:67: incompatible
> types
>    [javac] found   : org.apache.poi.hssf.usermodel.HSSFWorkbook
>    [javac] required: org.apache.poi.ss.usermodel.Workbook
>    [javac]         if(args.length > 0 && args[0].equals("-xls")) wb = new
> HSSFWorkbook();
>    [javac]                                                            ^

HSSFWorkbook is a Workbook. You almost certainly have multiple copies of 
POI on your classpath. See the FAQ on the website for how to locate them

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org