You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by "Karr, David" <da...@wamu.net> on 2007/03/29 21:05:38 UTC

Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

I'm trying to use 3.0rc2, and I'm trying to use the scratchpad jar for
the first time.  I'm using JDK 1.4.2.  When I try to compile my code
with Ant, I get the following:

bad class file:
...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Workbook.clas
s)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
import org.apache.poi.hssf.model.Workbook;

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Re: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by Nick Burch <ni...@torchbox.com>.
On Thu, 29 Mar 2007, David Fisher wrote:
> That class file was compiled with JDK 5.0
>
> See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors

Bah, looks like a forgot to do a clean before doing a dist build. I find 
that despite telling eclipse to only use JDK 1.4 for poi, it still 
sometimes builds 1.5 classes :(

I've done a build of RC3, having done a clean. It's available from:
 	http://people.apache.org/~nick/POI-3.0-RC3/

Also, if no-one complains, I'm going to have the build ant task call the 
clean one early on, to prevent this happening again.

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Re: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by Nick Burch <ni...@torchbox.com>.
On Thu, 29 Mar 2007, David Fisher wrote:
> That class file was compiled with JDK 5.0
>
> See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors

Bah, looks like a forgot to do a clean before doing a dist build. I find 
that despite telling eclipse to only use JDK 1.4 for poi, it still 
sometimes builds 1.5 classes :(

I've done a build of RC3, having done a clean. It's available from:
 	http://people.apache.org/~nick/POI-3.0-RC3/

Also, if no-one complains, I'm going to have the build ant task call the 
clean one early on, to prevent this happening again.

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Re: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by "Andrew C. Oliver" <ac...@buni.org>.
We did take a vote sometime back though and we do not claim to work on 
1.3 any longer.

Really if you want to make 1.42 binaries you really need to compile them 
on 1.4.2 the backward compatibility stuff virtually never works on any 
JDK for a project the size of POI.

-Andy

Yegor Kozlov wrote:
> Very strange.
>
> We have this setting in build.xml and it is "-target 1.3"!
> We should be compatible with 1.3+ JVMs.
>
> Nick, are you using the standard build.xml? Which JDK?
>
> Regards,
> Yegor
>
> AS> even if compiling in 1.5, there is a setting to use backward compatible 
> AS> classfile format. We should just set in the ant buildfile for safety, so that 
> AS> we create correct builds irrespective of the java version on the release 
> AS> manager's machine. (this is assuming all source does compile in the older 
> AS> jdk, of course!)
>
> AS> Separately, if you are interested in older versions of java, you should 
> AS> occasionally compile the source and report errors in your favourite jdk. It 
> AS> is very easy to check in non backward compatible stuff by mistake, depending 
> AS> on the jdk in one's machine...
>
> AS> Regards
> AS> -
> AS> Avik
>
>
> AS> On Friday 30 Mar 2007 5:38:40 am Karr, David wrote:
>   
>>> I assume you're only half serious.  Dropping 1.4.2 at this point would
>>> be a big mistake.  In any case, I tried manually building the jars from
>>> source with JDK 1.4.2, and it works fine.
>>>
>>>       
>>>> -----Original Message-----
>>>> From: Andrew C. Oliver [mailto:acoliver@buni.org]
>>>> Sent: Thursday, March 29, 2007 12:47 PM
>>>> To: POI Users List
>>>> Subject: Re: Getting "class file has wrong version" error on
>>>> poi-scratchpad-3.0-rc2 jar
>>>>
>>>> yeah unless we've dropped 1.42 then it should be compiled on 1.42.
>>>> So the last build is invalid or we need a vote to drop 1.42 and req 5+
>>>>
>>>> -andy
>>>>
>>>> David Fisher wrote:
>>>>         
>>>>> That class file was compiled with JDK 5.0
>>>>>
>>>>> See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors
>>>>>
>>>>> On Mar 29, 2007, at 2:25 PM, Karr, David wrote:
>>>>>           
>>>>>> Obviously, I was wrong to refer to this as the scratchpad
>>>>>>             
>>>> jar.  It's
>>>>
>>>>         
>>>>>> the main poi jar.
>>>>>>
>>>>>>             
>>>>>>> -----Original Message-----
>>>>>>> From: Karr, David
>>>>>>> Sent: Thursday, March 29, 2007 12:06 PM
>>>>>>> To: POI Users List
>>>>>>> Subject: Getting "class file has wrong version" error on
>>>>>>> poi-scratchpad-3.0-rc2 jar
>>>>>>>
>>>>>>> I'm trying to use 3.0rc2, and I'm trying to use the
>>>>>>>               
>>>> scratchpad jar
>>>>
>>>>         
>>>>>>> for the first time.  I'm using JDK 1.4.2.
>>>>>>> When I try to compile my code with Ant, I get the following:
>>>>>>>
>>>>>>> bad class file:
>>>>>>> ...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Wor
>>>>>>>               
>>>>>> kbook.clas
>>>>>>
>>>>>>             
>>>>>>> s)
>>>>>>> class file has wrong version 49.0, should be 48.0 Please
>>>>>>>               
>>>> remove or
>>>>
>>>>         
>>>>>>> make sure it appears in the correct subdirectory of the classpath.
>>>>>>> import org.apache.poi.hssf.model.Workbook;
>>>>>>>               
>>>> --------------------------------------------------------------------
>>>>
>>>>         
>>>>>>> - To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>>>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>>>>>               
>>>> ---------------------------------------------------------------------
>>>>
>>>>         
>>>>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>>>>             
>>>> ---------------------------------------------------------------------
>>>>
>>>>         
>>>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>>>           
>>>> --
>>>> From Windows/Exchange to Linux/Meldware
>>>> Buni Meldware Communication Suite
>>>> Email, Calendaring, ease of configuration/administration
>>>> http://buni.org
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>>         
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>       
>
>
>
> AS> ---------------------------------------------------------------------
> AS> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> AS> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> AS> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>   


-- 
>From Windows/Exchange to Linux/Meldware
Buni Meldware Communication Suite
Email, Calendaring, ease of configuration/administration
http://buni.org


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Re[2]: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by Yegor Kozlov <ye...@dinom.ru>.
Very strange.

We have this setting in build.xml and it is "-target 1.3"!
We should be compatible with 1.3+ JVMs.

Nick, are you using the standard build.xml? Which JDK?

Regards,
Yegor

AS> even if compiling in 1.5, there is a setting to use backward compatible 
AS> classfile format. We should just set in the ant buildfile for safety, so that 
AS> we create correct builds irrespective of the java version on the release 
AS> manager's machine. (this is assuming all source does compile in the older 
AS> jdk, of course!)

AS> Separately, if you are interested in older versions of java, you should 
AS> occasionally compile the source and report errors in your favourite jdk. It 
AS> is very easy to check in non backward compatible stuff by mistake, depending 
AS> on the jdk in one's machine...

AS> Regards
AS> -
AS> Avik


AS> On Friday 30 Mar 2007 5:38:40 am Karr, David wrote:
>> I assume you're only half serious.  Dropping 1.4.2 at this point would
>> be a big mistake.  In any case, I tried manually building the jars from
>> source with JDK 1.4.2, and it works fine.
>>
>> > -----Original Message-----
>> > From: Andrew C. Oliver [mailto:acoliver@buni.org]
>> > Sent: Thursday, March 29, 2007 12:47 PM
>> > To: POI Users List
>> > Subject: Re: Getting "class file has wrong version" error on
>> > poi-scratchpad-3.0-rc2 jar
>> >
>> > yeah unless we've dropped 1.42 then it should be compiled on 1.42.
>> > So the last build is invalid or we need a vote to drop 1.42 and req 5+
>> >
>> > -andy
>> >
>> > David Fisher wrote:
>> > > That class file was compiled with JDK 5.0
>> > >
>> > > See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors
>> > >
>> > > On Mar 29, 2007, at 2:25 PM, Karr, David wrote:
>> > >> Obviously, I was wrong to refer to this as the scratchpad
>> >
>> > jar.  It's
>> >
>> > >> the main poi jar.
>> > >>
>> > >>> -----Original Message-----
>> > >>> From: Karr, David
>> > >>> Sent: Thursday, March 29, 2007 12:06 PM
>> > >>> To: POI Users List
>> > >>> Subject: Getting "class file has wrong version" error on
>> > >>> poi-scratchpad-3.0-rc2 jar
>> > >>>
>> > >>> I'm trying to use 3.0rc2, and I'm trying to use the
>> >
>> > scratchpad jar
>> >
>> > >>> for the first time.  I'm using JDK 1.4.2.
>> > >>> When I try to compile my code with Ant, I get the following:
>> > >>>
>> > >>> bad class file:
>> > >>> ...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Wor
>> > >>
>> > >> kbook.clas
>> > >>
>> > >>> s)
>> > >>> class file has wrong version 49.0, should be 48.0 Please
>> >
>> > remove or
>> >
>> > >>> make sure it appears in the correct subdirectory of the classpath.
>> > >>> import org.apache.poi.hssf.model.Workbook;
>> >
>> > --------------------------------------------------------------------
>> >
>> > >>> - To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>> > >>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>> > >>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>> >
>> > ---------------------------------------------------------------------
>> >
>> > >> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>> > >> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>> > >> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>> >
>> > ---------------------------------------------------------------------
>> >
>> > > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>> > > Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>> > > The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>> >
>> > --
>> > From Windows/Exchange to Linux/Meldware
>> > Buni Meldware Communication Suite
>> > Email, Calendaring, ease of configuration/administration
>> > http://buni.org
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>> > Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>> > The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/



AS> ---------------------------------------------------------------------
AS> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
AS> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
AS> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Re: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by Avik Sengupta <av...@itellix.com>.
even if compiling in 1.5, there is a setting to use backward compatible 
classfile format. We should just set in the ant buildfile for safety, so that 
we create correct builds irrespective of the java version on the release 
manager's machine. (this is assuming all source does compile in the older 
jdk, of course!)

Separately, if you are interested in older versions of java, you should 
occasionally compile the source and report errors in your favourite jdk. It 
is very easy to check in non backward compatible stuff by mistake, depending 
on the jdk in one's machine...

Regards
-
Avik


On Friday 30 Mar 2007 5:38:40 am Karr, David wrote:
> I assume you're only half serious.  Dropping 1.4.2 at this point would
> be a big mistake.  In any case, I tried manually building the jars from
> source with JDK 1.4.2, and it works fine.
>
> > -----Original Message-----
> > From: Andrew C. Oliver [mailto:acoliver@buni.org]
> > Sent: Thursday, March 29, 2007 12:47 PM
> > To: POI Users List
> > Subject: Re: Getting "class file has wrong version" error on
> > poi-scratchpad-3.0-rc2 jar
> >
> > yeah unless we've dropped 1.42 then it should be compiled on 1.42.
> > So the last build is invalid or we need a vote to drop 1.42 and req 5+
> >
> > -andy
> >
> > David Fisher wrote:
> > > That class file was compiled with JDK 5.0
> > >
> > > See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors
> > >
> > > On Mar 29, 2007, at 2:25 PM, Karr, David wrote:
> > >> Obviously, I was wrong to refer to this as the scratchpad
> >
> > jar.  It's
> >
> > >> the main poi jar.
> > >>
> > >>> -----Original Message-----
> > >>> From: Karr, David
> > >>> Sent: Thursday, March 29, 2007 12:06 PM
> > >>> To: POI Users List
> > >>> Subject: Getting "class file has wrong version" error on
> > >>> poi-scratchpad-3.0-rc2 jar
> > >>>
> > >>> I'm trying to use 3.0rc2, and I'm trying to use the
> >
> > scratchpad jar
> >
> > >>> for the first time.  I'm using JDK 1.4.2.
> > >>> When I try to compile my code with Ant, I get the following:
> > >>>
> > >>> bad class file:
> > >>> ...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Wor
> > >>
> > >> kbook.clas
> > >>
> > >>> s)
> > >>> class file has wrong version 49.0, should be 48.0 Please
> >
> > remove or
> >
> > >>> make sure it appears in the correct subdirectory of the classpath.
> > >>> import org.apache.poi.hssf.model.Workbook;
> >
> > --------------------------------------------------------------------
> >
> > >>> - To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > >>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> > >>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >
> > ---------------------------------------------------------------------
> >
> > >> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > >> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> > >> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >
> > ---------------------------------------------------------------------
> >
> > > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > > Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> > > The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >
> > --
> > From Windows/Exchange to Linux/Meldware
> > Buni Meldware Communication Suite
> > Email, Calendaring, ease of configuration/administration
> > http://buni.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> > The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/



---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Re: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by David Fisher <df...@jmlafferty.com>.
Sardonic!  I'm an emphatic, instant -1 on any vote to require 5+!

Best of luck to Nick, and thanks for the RC2 work :-)

Regards,
Dave

On Mar 29, 2007, at 2:47 PM, Andrew C. Oliver wrote:

> yeah unless we've dropped 1.42 then it should be compiled on 1.42.
> So the last build is invalid or we need a vote to drop 1.42 and req 5+
>
> -andy
>
> David Fisher wrote:
>> That class file was compiled with JDK 5.0
>>
>> See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors
>>
>> On Mar 29, 2007, at 2:25 PM, Karr, David wrote:
>>
>>> Obviously, I was wrong to refer to this as the scratchpad jar.   
>>> It's the
>>> main poi jar.
>>>
>>>> -----Original Message-----
>>>> From: Karr, David
>>>> Sent: Thursday, March 29, 2007 12:06 PM
>>>> To: POI Users List
>>>> Subject: Getting "class file has wrong version" error on
>>>> poi-scratchpad-3.0-rc2 jar
>>>>
>>>> I'm trying to use 3.0rc2, and I'm trying to use the
>>>> scratchpad jar for the first time.  I'm using JDK 1.4.2.
>>>> When I try to compile my code with Ant, I get the following:
>>>>
>>>> bad class file:
>>>> ...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Wor
>>> kbook.clas
>>>> s)
>>>> class file has wrong version 49.0, should be 48.0 Please
>>>> remove or make sure it appears in the correct subdirectory of
>>>> the classpath.
>>>> import org.apache.poi.hssf.model.Workbook;
>>>>
>>>> ------------------------------------------------------------------- 
>>>> --
>>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>>
>>>>
>>>
>>> -------------------------------------------------------------------- 
>>> -
>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>
>
> -- 
>> From Windows/Exchange to Linux/Meldware
> Buni Meldware Communication Suite
> Email, Calendaring, ease of configuration/administration
> http://buni.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Re: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by Avik Sengupta <av...@itellix.com>.
I disagree .. quite strongly, i must say.

 I support applications that went into production five years ago. And while 
upgrades and extentions do happen, I'm very sure changing the jdk will be 
considered an extremely risky proposition by my client, irrespective of the 
technical merits, and/or developer pressure. And i do understand the 
motivation for this kind of risk averse approach

One of my other apps is still in production after 8 years, on Microsoft JDK... 
But i dont expect any other app to support that... :)

But 1.4, we should keep for now. 

Regards
-
Avik


On Friday 30 Mar 2007 9:48:34 pm Andrew C. Oliver wrote:
> Thank you for the explanation.  Places that practice poor technically
> inadvisable practices are not sufficient rationalization to me.  I'm +1
> to dropping 1.42 BTW if someone proposes the vote.  (Generally you can
> count me to support dropping anything more than two major releases back)
>
> -Andy
>
> Karr, David wrote:
> > In the real world, upgrading platforms is not something individuals can
> > control.  If it were up to me, I would be running close to the edge all
> > the time.  I wouldn't be surprised if I'm still doing 1.4.2 work at the
> > end of this year.
> >
> >> -----Original Message-----
> >> From: Andrew C. Oliver [mailto:acoliver@buni.org]
> >> Sent: Friday, March 30, 2007 4:55 AM
> >> To: POI Users List
> >> Subject: Re: Getting "class file has wrong version" error on
> >> poi-scratchpad-3.0-rc2 jar
> >>
> >> Why exactly?  Running a JDK that is 2 versions back tends to
> >> be a rather large faux pas as well.  Is there still a
> >> platform that 1.5 isn't available for?
> >>
> >> Karr, David wrote:
> >>> I assume you're only half serious.  Dropping 1.4.2 at this
> >>
> >> point would
> >>
> >>> be a big mistake.  In any case, I tried manually building the jars
> >>> from source with JDK 1.4.2, and it works fine.
> >>>
> >>>> -----Original Message-----
> >>>> From: Andrew C. Oliver [mailto:acoliver@buni.org]
> >>>> Sent: Thursday, March 29, 2007 12:47 PM
> >>>> To: POI Users List
> >>>> Subject: Re: Getting "class file has wrong version" error on
> >>>> poi-scratchpad-3.0-rc2 jar
> >>>>
> >>>> yeah unless we've dropped 1.42 then it should be compiled on 1.42.
> >>>> So the last build is invalid or we need a vote to drop
> >>
> >> 1.42 and req
> >>
> >>>> 5+
> >>>>
> >>>> -andy
> >>>>
> >>>> David Fisher wrote:
> >>>>> That class file was compiled with JDK 5.0
> >>>>>
> >>>>> See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors
> >>>>>
> >>>>> On Mar 29, 2007, at 2:25 PM, Karr, David wrote:
> >>>>>> Obviously, I was wrong to refer to this as the scratchpad
> >>>>
> >>>> jar.  It's
> >>>>
> >>>>>> the main poi jar.
> >>>>>>
> >>>>>>> -----Original Message-----
> >>>>>>> From: Karr, David
> >>>>>>> Sent: Thursday, March 29, 2007 12:06 PM
> >>>>>>> To: POI Users List
> >>>>>>> Subject: Getting "class file has wrong version" error on
> >>>>>>> poi-scratchpad-3.0-rc2 jar
> >>>>>>>
> >>>>>>> I'm trying to use 3.0rc2, and I'm trying to use the
> >>>>
> >>>> scratchpad jar
> >>>>
> >>>>>>> for the first time.  I'm using JDK 1.4.2.
> >>>>>>> When I try to compile my code with Ant, I get the following:
> >>>>>>>
> >>>>>>> bad class file:
> >>>>>>> ...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Wor
> >>>>>>
> >>>>>> kbook.clas
> >>>>>>
> >>>>>>> s)
> >>>>>>> class file has wrong version 49.0, should be 48.0 Please
> >>>>
> >>>> remove or
> >>>>
> >>>>>>> make sure it appears in the correct subdirectory of the
> >>
> >> classpath.
> >>
> >>>>>>> import org.apache.poi.hssf.model.Workbook;
> >>
> >> --------------------------------------------------------------------
> >>
> >>>>>>> - To unsubscribe, e-mail:
> >>
> >> poi-user-unsubscribe@jakarta.apache.org
> >>
> >>>>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> >>>>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >>
> >> ---------------------------------------------------------------------
> >>
> >>>>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> >>>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> >>>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >>
> >> ---------------------------------------------------------------------
> >>
> >>>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> >>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> >>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >>>>
> >>>> --
> >>>> From Windows/Exchange to Linux/Meldware Buni Meldware
> >>
> >> Communication
> >>
> >>>> Suite Email, Calendaring, ease of configuration/administration
> >>>> http://buni.org
> >>
> >> ---------------------------------------------------------------------
> >>
> >>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> >>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> >>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >>
> >> ---------------------------------------------------------------------
> >>
> >>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> >>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> >>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >>
> >> --
> >> From Windows/Exchange to Linux/Meldware
> >> Buni Meldware Communication Suite
> >> Email, Calendaring, ease of configuration/administration
> >> http://buni.org
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> >> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> >> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> > The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/



---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Re: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by "Andrew C. Oliver" <ac...@buni.org>.
Thank you for the explanation.  Places that practice poor technically 
inadvisable practices are not sufficient rationalization to me.  I'm +1 
to dropping 1.42 BTW if someone proposes the vote.  (Generally you can 
count me to support dropping anything more than two major releases back)

-Andy

Karr, David wrote:
> In the real world, upgrading platforms is not something individuals can
> control.  If it were up to me, I would be running close to the edge all
> the time.  I wouldn't be surprised if I'm still doing 1.4.2 work at the
> end of this year.
>
>   
>> -----Original Message-----
>> From: Andrew C. Oliver [mailto:acoliver@buni.org] 
>> Sent: Friday, March 30, 2007 4:55 AM
>> To: POI Users List
>> Subject: Re: Getting "class file has wrong version" error on 
>> poi-scratchpad-3.0-rc2 jar
>>
>> Why exactly?  Running a JDK that is 2 versions back tends to 
>> be a rather large faux pas as well.  Is there still a 
>> platform that 1.5 isn't available for?
>>
>> Karr, David wrote:
>>     
>>> I assume you're only half serious.  Dropping 1.4.2 at this 
>>>       
>> point would 
>>     
>>> be a big mistake.  In any case, I tried manually building the jars 
>>> from source with JDK 1.4.2, and it works fine.
>>>
>>>   
>>>       
>>>> -----Original Message-----
>>>> From: Andrew C. Oliver [mailto:acoliver@buni.org]
>>>> Sent: Thursday, March 29, 2007 12:47 PM
>>>> To: POI Users List
>>>> Subject: Re: Getting "class file has wrong version" error on
>>>> poi-scratchpad-3.0-rc2 jar
>>>>
>>>> yeah unless we've dropped 1.42 then it should be compiled on 1.42.
>>>> So the last build is invalid or we need a vote to drop 
>>>>         
>> 1.42 and req 
>>     
>>>> 5+
>>>>
>>>> -andy
>>>>
>>>> David Fisher wrote:
>>>>     
>>>>         
>>>>> That class file was compiled with JDK 5.0
>>>>>
>>>>> See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors
>>>>>
>>>>> On Mar 29, 2007, at 2:25 PM, Karr, David wrote:
>>>>>
>>>>>       
>>>>>           
>>>>>> Obviously, I was wrong to refer to this as the scratchpad
>>>>>>         
>>>>>>             
>>>> jar.  It's
>>>>     
>>>>         
>>>>>> the main poi jar.
>>>>>>
>>>>>>         
>>>>>>             
>>>>>>> -----Original Message-----
>>>>>>> From: Karr, David
>>>>>>> Sent: Thursday, March 29, 2007 12:06 PM
>>>>>>> To: POI Users List
>>>>>>> Subject: Getting "class file has wrong version" error on
>>>>>>> poi-scratchpad-3.0-rc2 jar
>>>>>>>
>>>>>>> I'm trying to use 3.0rc2, and I'm trying to use the
>>>>>>>           
>>>>>>>               
>>>> scratchpad jar
>>>>     
>>>>         
>>>>>>> for the first time.  I'm using JDK 1.4.2.
>>>>>>> When I try to compile my code with Ant, I get the following:
>>>>>>>
>>>>>>> bad class file:
>>>>>>> ...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Wor
>>>>>>>           
>>>>>>>               
>>>>>> kbook.clas
>>>>>>         
>>>>>>             
>>>>>>> s)
>>>>>>> class file has wrong version 49.0, should be 48.0 Please
>>>>>>>           
>>>>>>>               
>>>> remove or
>>>>     
>>>>         
>>>>>>> make sure it appears in the correct subdirectory of the 
>>>>>>>               
>> classpath.
>>     
>>>>>>> import org.apache.poi.hssf.model.Workbook;
>>>>>>>
>>>>>>>
>>>>>>>           
>>>>>>>               
>> --------------------------------------------------------------------
>>     
>>>>     
>>>>         
>>>>>>> - To unsubscribe, e-mail: 
>>>>>>>               
>> poi-user-unsubscribe@jakarta.apache.org
>>     
>>>>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>>>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>>>>>
>>>>>>>
>>>>>>>           
>>>>>>>               
>>>>>>         
>>>>>>             
>> ---------------------------------------------------------------------
>>     
>>>>     
>>>>         
>>>>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>>>>
>>>>>>
>>>>>>         
>>>>>>             
>>>>>       
>>>>>           
>> ---------------------------------------------------------------------
>>     
>>>>     
>>>>         
>>>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>>>       
>>>>>           
>>>> --
>>>> From Windows/Exchange to Linux/Meldware Buni Meldware 
>>>>         
>> Communication 
>>     
>>>> Suite Email, Calendaring, ease of configuration/administration 
>>>> http://buni.org
>>>>
>>>>
>>>>
>>>>         
>> ---------------------------------------------------------------------
>>     
>>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>>
>>>>
>>>>     
>>>>         
>>>       
>> ---------------------------------------------------------------------
>>     
>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>   
>>>       
>> --
>> From Windows/Exchange to Linux/Meldware
>> Buni Meldware Communication Suite
>> Email, Calendaring, ease of configuration/administration 
>> http://buni.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>   


-- 
>From Windows/Exchange to Linux/Meldware
Buni Meldware Communication Suite
Email, Calendaring, ease of configuration/administration
http://buni.org


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


RE: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by "Karr, David" <da...@wamu.net>.
In the real world, upgrading platforms is not something individuals can
control.  If it were up to me, I would be running close to the edge all
the time.  I wouldn't be surprised if I'm still doing 1.4.2 work at the
end of this year.

> -----Original Message-----
> From: Andrew C. Oliver [mailto:acoliver@buni.org] 
> Sent: Friday, March 30, 2007 4:55 AM
> To: POI Users List
> Subject: Re: Getting "class file has wrong version" error on 
> poi-scratchpad-3.0-rc2 jar
> 
> Why exactly?  Running a JDK that is 2 versions back tends to 
> be a rather large faux pas as well.  Is there still a 
> platform that 1.5 isn't available for?
> 
> Karr, David wrote:
> > I assume you're only half serious.  Dropping 1.4.2 at this 
> point would 
> > be a big mistake.  In any case, I tried manually building the jars 
> > from source with JDK 1.4.2, and it works fine.
> >
> >   
> >> -----Original Message-----
> >> From: Andrew C. Oliver [mailto:acoliver@buni.org]
> >> Sent: Thursday, March 29, 2007 12:47 PM
> >> To: POI Users List
> >> Subject: Re: Getting "class file has wrong version" error on
> >> poi-scratchpad-3.0-rc2 jar
> >>
> >> yeah unless we've dropped 1.42 then it should be compiled on 1.42.
> >> So the last build is invalid or we need a vote to drop 
> 1.42 and req 
> >> 5+
> >>
> >> -andy
> >>
> >> David Fisher wrote:
> >>     
> >>> That class file was compiled with JDK 5.0
> >>>
> >>> See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors
> >>>
> >>> On Mar 29, 2007, at 2:25 PM, Karr, David wrote:
> >>>
> >>>       
> >>>> Obviously, I was wrong to refer to this as the scratchpad
> >>>>         
> >> jar.  It's
> >>     
> >>>> the main poi jar.
> >>>>
> >>>>         
> >>>>> -----Original Message-----
> >>>>> From: Karr, David
> >>>>> Sent: Thursday, March 29, 2007 12:06 PM
> >>>>> To: POI Users List
> >>>>> Subject: Getting "class file has wrong version" error on
> >>>>> poi-scratchpad-3.0-rc2 jar
> >>>>>
> >>>>> I'm trying to use 3.0rc2, and I'm trying to use the
> >>>>>           
> >> scratchpad jar
> >>     
> >>>>> for the first time.  I'm using JDK 1.4.2.
> >>>>> When I try to compile my code with Ant, I get the following:
> >>>>>
> >>>>> bad class file:
> >>>>> ...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Wor
> >>>>>           
> >>>> kbook.clas
> >>>>         
> >>>>> s)
> >>>>> class file has wrong version 49.0, should be 48.0 Please
> >>>>>           
> >> remove or
> >>     
> >>>>> make sure it appears in the correct subdirectory of the 
> classpath.
> >>>>> import org.apache.poi.hssf.model.Workbook;
> >>>>>
> >>>>>
> >>>>>           
> >> 
> --------------------------------------------------------------------
> >>     
> >>>>> - To unsubscribe, e-mail: 
> poi-user-unsubscribe@jakarta.apache.org
> >>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> >>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >>>>>
> >>>>>
> >>>>>           
> >>>>         
> >> 
> ---------------------------------------------------------------------
> >>     
> >>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> >>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> >>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >>>>
> >>>>
> >>>>         
> >>>
> >>>       
> >> 
> ---------------------------------------------------------------------
> >>     
> >>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> >>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> >>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >>>       
> >> --
> >> From Windows/Exchange to Linux/Meldware Buni Meldware 
> Communication 
> >> Suite Email, Calendaring, ease of configuration/administration 
> >> http://buni.org
> >>
> >>
> >> 
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> >> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> >> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >>
> >>
> >>     
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> > The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >   
> 
> 
> --
> From Windows/Exchange to Linux/Meldware
> Buni Meldware Communication Suite
> Email, Calendaring, ease of configuration/administration 
> http://buni.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Re: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by "Andrew C. Oliver" <ac...@buni.org>.
Why exactly?  Running a JDK that is 2 versions back tends to be a rather 
large faux pas as well.  Is there still a platform that 1.5 isn't 
available for?

Karr, David wrote:
> I assume you're only half serious.  Dropping 1.4.2 at this point would
> be a big mistake.  In any case, I tried manually building the jars from
> source with JDK 1.4.2, and it works fine. 
>
>   
>> -----Original Message-----
>> From: Andrew C. Oliver [mailto:acoliver@buni.org] 
>> Sent: Thursday, March 29, 2007 12:47 PM
>> To: POI Users List
>> Subject: Re: Getting "class file has wrong version" error on 
>> poi-scratchpad-3.0-rc2 jar
>>
>> yeah unless we've dropped 1.42 then it should be compiled on 1.42.
>> So the last build is invalid or we need a vote to drop 1.42 and req 5+
>>
>> -andy
>>
>> David Fisher wrote:
>>     
>>> That class file was compiled with JDK 5.0
>>>
>>> See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors
>>>
>>> On Mar 29, 2007, at 2:25 PM, Karr, David wrote:
>>>
>>>       
>>>> Obviously, I was wrong to refer to this as the scratchpad 
>>>>         
>> jar.  It's 
>>     
>>>> the main poi jar.
>>>>
>>>>         
>>>>> -----Original Message-----
>>>>> From: Karr, David
>>>>> Sent: Thursday, March 29, 2007 12:06 PM
>>>>> To: POI Users List
>>>>> Subject: Getting "class file has wrong version" error on
>>>>> poi-scratchpad-3.0-rc2 jar
>>>>>
>>>>> I'm trying to use 3.0rc2, and I'm trying to use the 
>>>>>           
>> scratchpad jar 
>>     
>>>>> for the first time.  I'm using JDK 1.4.2.
>>>>> When I try to compile my code with Ant, I get the following:
>>>>>
>>>>> bad class file:
>>>>> ...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Wor
>>>>>           
>>>> kbook.clas
>>>>         
>>>>> s)
>>>>> class file has wrong version 49.0, should be 48.0 Please 
>>>>>           
>> remove or 
>>     
>>>>> make sure it appears in the correct subdirectory of the classpath.
>>>>> import org.apache.poi.hssf.model.Workbook;
>>>>>
>>>>>
>>>>>           
>> --------------------------------------------------------------------
>>     
>>>>> - To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>>>
>>>>>
>>>>>           
>>>>         
>> ---------------------------------------------------------------------
>>     
>>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>>
>>>>
>>>>         
>>>
>>>       
>> ---------------------------------------------------------------------
>>     
>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>       
>> --
>> From Windows/Exchange to Linux/Meldware
>> Buni Meldware Communication Suite
>> Email, Calendaring, ease of configuration/administration 
>> http://buni.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>   


-- 
>From Windows/Exchange to Linux/Meldware
Buni Meldware Communication Suite
Email, Calendaring, ease of configuration/administration
http://buni.org


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Re: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by Daniel Noll <da...@nuix.com>.
Karr, David wrote:
> I assume you're only half serious.  Dropping 1.4.2 at this point would
> be a big mistake.

Would it though?  It's a whole two major versions behind the current 
release.

Daniel


-- 
Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia    Ph: +61 2 9280 0699
Web: http://nuix.com/                               Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


RE: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by "Karr, David" <da...@wamu.net>.
I assume you're only half serious.  Dropping 1.4.2 at this point would
be a big mistake.  In any case, I tried manually building the jars from
source with JDK 1.4.2, and it works fine. 

> -----Original Message-----
> From: Andrew C. Oliver [mailto:acoliver@buni.org] 
> Sent: Thursday, March 29, 2007 12:47 PM
> To: POI Users List
> Subject: Re: Getting "class file has wrong version" error on 
> poi-scratchpad-3.0-rc2 jar
> 
> yeah unless we've dropped 1.42 then it should be compiled on 1.42.
> So the last build is invalid or we need a vote to drop 1.42 and req 5+
> 
> -andy
> 
> David Fisher wrote:
> > That class file was compiled with JDK 5.0
> >
> > See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors
> >
> > On Mar 29, 2007, at 2:25 PM, Karr, David wrote:
> >
> >> Obviously, I was wrong to refer to this as the scratchpad 
> jar.  It's 
> >> the main poi jar.
> >>
> >>> -----Original Message-----
> >>> From: Karr, David
> >>> Sent: Thursday, March 29, 2007 12:06 PM
> >>> To: POI Users List
> >>> Subject: Getting "class file has wrong version" error on
> >>> poi-scratchpad-3.0-rc2 jar
> >>>
> >>> I'm trying to use 3.0rc2, and I'm trying to use the 
> scratchpad jar 
> >>> for the first time.  I'm using JDK 1.4.2.
> >>> When I try to compile my code with Ant, I get the following:
> >>>
> >>> bad class file:
> >>> ...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Wor
> >> kbook.clas
> >>> s)
> >>> class file has wrong version 49.0, should be 48.0 Please 
> remove or 
> >>> make sure it appears in the correct subdirectory of the classpath.
> >>> import org.apache.poi.hssf.model.Workbook;
> >>>
> >>> 
> --------------------------------------------------------------------
> >>> - To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> >>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> >>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >>>
> >>>
> >>
> >> 
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> >> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> >> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> >>
> >>
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> > The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> 
> 
> --
> From Windows/Exchange to Linux/Meldware
> Buni Meldware Communication Suite
> Email, Calendaring, ease of configuration/administration 
> http://buni.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Re: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by "Andrew C. Oliver" <ac...@buni.org>.
yeah unless we've dropped 1.42 then it should be compiled on 1.42.
So the last build is invalid or we need a vote to drop 1.42 and req 5+

-andy

David Fisher wrote:
> That class file was compiled with JDK 5.0
>
> See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors
>
> On Mar 29, 2007, at 2:25 PM, Karr, David wrote:
>
>> Obviously, I was wrong to refer to this as the scratchpad jar.  It's the
>> main poi jar.
>>
>>> -----Original Message-----
>>> From: Karr, David
>>> Sent: Thursday, March 29, 2007 12:06 PM
>>> To: POI Users List
>>> Subject: Getting "class file has wrong version" error on
>>> poi-scratchpad-3.0-rc2 jar
>>>
>>> I'm trying to use 3.0rc2, and I'm trying to use the
>>> scratchpad jar for the first time.  I'm using JDK 1.4.2.
>>> When I try to compile my code with Ant, I get the following:
>>>
>>> bad class file:
>>> ...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Wor
>> kbook.clas
>>> s)
>>> class file has wrong version 49.0, should be 48.0 Please
>>> remove or make sure it appears in the correct subdirectory of
>>> the classpath.
>>> import org.apache.poi.hssf.model.Workbook;
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


-- 
>From Windows/Exchange to Linux/Meldware
Buni Meldware Communication Suite
Email, Calendaring, ease of configuration/administration
http://buni.org


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Re: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by David Fisher <df...@jmlafferty.com>.
That class file was compiled with JDK 5.0

See http://blogs.sun.com/sundararajan/entry/java_class_ic_errors

On Mar 29, 2007, at 2:25 PM, Karr, David wrote:

> Obviously, I was wrong to refer to this as the scratchpad jar.   
> It's the
> main poi jar.
>
>> -----Original Message-----
>> From: Karr, David
>> Sent: Thursday, March 29, 2007 12:06 PM
>> To: POI Users List
>> Subject: Getting "class file has wrong version" error on
>> poi-scratchpad-3.0-rc2 jar
>>
>> I'm trying to use 3.0rc2, and I'm trying to use the
>> scratchpad jar for the first time.  I'm using JDK 1.4.2.
>> When I try to compile my code with Ant, I get the following:
>>
>> bad class file:
>> ...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Wor
> kbook.clas
>> s)
>> class file has wrong version 49.0, should be 48.0 Please
>> remove or make sure it appears in the correct subdirectory of
>> the classpath.
>> import org.apache.poi.hssf.model.Workbook;
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
>> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


RE: Getting "class file has wrong version" error on poi-scratchpad-3.0-rc2 jar

Posted by "Karr, David" <da...@wamu.net>.
Obviously, I was wrong to refer to this as the scratchpad jar.  It's the
main poi jar. 

> -----Original Message-----
> From: Karr, David 
> Sent: Thursday, March 29, 2007 12:06 PM
> To: POI Users List
> Subject: Getting "class file has wrong version" error on 
> poi-scratchpad-3.0-rc2 jar
> 
> I'm trying to use 3.0rc2, and I'm trying to use the 
> scratchpad jar for the first time.  I'm using JDK 1.4.2.  
> When I try to compile my code with Ant, I get the following:
> 
> bad class file:
> ...\lib\poi-3.0-rc2-20070329.jar(org/apache/poi/hssf/model/Wor
kbook.clas
> s)
> class file has wrong version 49.0, should be 48.0 Please 
> remove or make sure it appears in the correct subdirectory of 
> the classpath.
> import org.apache.poi.hssf.model.Workbook;
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/