You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Renaud Richardet <re...@wyona.com> on 2006/06/21 21:10:11 UTC

BUILD FAILED java.lang.UnsupportedClassVersionError (Unsupported major.minor version 49.0)

I had an error while trying to build Lenya trunk today:

ren@ren-ubuntu:~/src/lenya-1.4.x-purevirgin$ ./build.sh
Buildfile: build.xml

BUILD FAILED
java.lang.UnsupportedClassVersionError: 
org/apache/lenya/cms/ant/CopyJavaSourcesTask (Unsupported major.minor 
version 49.0)

Total time: 2 seconds

This is probably due to the recent changes in:

A    tools/anttasks/org/apache/lenya/cms/ant/TwoTuple.java
U    tools/anttasks/org/apache/lenya/cms/ant/CopyJavaSourcesTask.class
[...]

To fix it, I deleted the current .class files in 
tools/anttasks/org/apache/lenya/cms/ant/ and run
./build.sh compile-build-tasks

HTH,
Renaud

-- 
Renaud Richardet
COO America
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
office +1 857 776-3195                     mobile +1 617 230 9112
renaud.richardet <at> wyona.com              http://www.wyona.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: BUILD FAILED java.lang.UnsupportedClassVersionError (Unsupported major.minor version 49.0)

Posted by Jörn Nettingsmeier <po...@uni-duisburg.de>.
Oliver Schalch wrote:
> On Wednesday 21 June 2006 22:59, Renaud Richardet wrote:
>> Andreas Hartmann wrote:
>>> Renaud Richardet wrote:
>>>> I had an error while trying to build Lenya trunk today:
>>>>
>>>> ren@ren-ubuntu:~/src/lenya-1.4.x-purevirgin$ ./build.sh
>>>> Buildfile: build.xml
>>>>
>>>> BUILD FAILED
>>>> java.lang.UnsupportedClassVersionError:
>>>> org/apache/lenya/cms/ant/CopyJavaSourcesTask (Unsupported major.minor
>>>> version 49.0)
>>>>
>>>> Total time: 2 seconds
>>>>
>>>> This is probably due to the recent changes in:
>>>>
>>>> A    tools/anttasks/org/apache/lenya/cms/ant/TwoTuple.java
>>>> U    tools/anttasks/org/apache/lenya/cms/ant/CopyJavaSourcesTask.class
>>>> [...]
>>>>
>>>> To fix it, I deleted the current .class files in
>>>> tools/anttasks/org/apache/lenya/cms/ant/ and run
>>>> ./build.sh compile-build-tasks
>>> Strange ... maybe it's due to my Java version?
>> or mine ;-) usually, major.minor are caused by Java1.4 - Java1.5 issues.
>> Are you using 1.5? I am using 1.4.2_10
>>
>>> Thanks for the pointer!
>>> Any hints how to avoid this are very welcome.
>> Maybe a committer using Java 1.4 could try to reproduce the bug,
>> recompile the classes and check them in?

i have the same issue here, java sdk is 1.4.2-11 on linux.

in addition to the fix suggested by renaud, i had to do
   rm tools/anttasks/org/apache/lenya/xml/*class
to avoid this error:

bad class file: 
/build/lenya/tools/anttasks/org/apache/lenya/xml/AntDocumentHelper.class
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.lenya.xml.AntDocumentHelper;


regards,

jörn


-- 
"Open source takes the bullshit out of software."
	- Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: pol-admin@uni-due.de, Telefon: 0203/379-2736

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: BUILD FAILED java.lang.UnsupportedClassVersionError (Unsupported major.minor version 49.0)

Posted by Oliver Schalch <ol...@wyona.com>.
On Wednesday 21 June 2006 22:59, Renaud Richardet wrote:
> Andreas Hartmann wrote:
> > Renaud Richardet wrote:
> >> I had an error while trying to build Lenya trunk today:
> >>
> >> ren@ren-ubuntu:~/src/lenya-1.4.x-purevirgin$ ./build.sh
> >> Buildfile: build.xml
> >>
> >> BUILD FAILED
> >> java.lang.UnsupportedClassVersionError:
> >> org/apache/lenya/cms/ant/CopyJavaSourcesTask (Unsupported major.minor
> >> version 49.0)
> >>
> >> Total time: 2 seconds
> >>
> >> This is probably due to the recent changes in:
> >>
> >> A    tools/anttasks/org/apache/lenya/cms/ant/TwoTuple.java
> >> U    tools/anttasks/org/apache/lenya/cms/ant/CopyJavaSourcesTask.class
> >> [...]
> >>
> >> To fix it, I deleted the current .class files in
> >> tools/anttasks/org/apache/lenya/cms/ant/ and run
> >> ./build.sh compile-build-tasks
> >
> > Strange ... maybe it's due to my Java version?
>
> or mine ;-) usually, major.minor are caused by Java1.4 - Java1.5 issues.
> Are you using 1.5? I am using 1.4.2_10
>
> > Thanks for the pointer!
> > Any hints how to avoid this are very welcome.
>
> Maybe a committer using Java 1.4 could try to reproduce the bug,
> recompile the classes and check them in?

I'm not a commiter ;) but yes building with Java 1.5 works good. I've 
recompiled the classes with 1.4, with those lenya builds again with java 1.4 
or 1.5. I've attached the 1.4 anttask classes.

Oli

Re: BUILD FAILED java.lang.UnsupportedClassVersionError (Unsupported major.minor version 49.0)

Posted by Renaud Richardet <re...@wyona.com>.
Andreas Hartmann wrote:
> Renaud Richardet wrote:
>> I had an error while trying to build Lenya trunk today:
>>
>> ren@ren-ubuntu:~/src/lenya-1.4.x-purevirgin$ ./build.sh
>> Buildfile: build.xml
>>
>> BUILD FAILED
>> java.lang.UnsupportedClassVersionError: 
>> org/apache/lenya/cms/ant/CopyJavaSourcesTask (Unsupported major.minor 
>> version 49.0)
>>
>> Total time: 2 seconds
>>
>> This is probably due to the recent changes in:
>>
>> A    tools/anttasks/org/apache/lenya/cms/ant/TwoTuple.java
>> U    tools/anttasks/org/apache/lenya/cms/ant/CopyJavaSourcesTask.class
>> [...]
>>
>> To fix it, I deleted the current .class files in 
>> tools/anttasks/org/apache/lenya/cms/ant/ and run
>> ./build.sh compile-build-tasks
>
> Strange ... maybe it's due to my Java version?
or mine ;-) usually, major.minor are caused by Java1.4 - Java1.5 issues. 
Are you using 1.5? I am using 1.4.2_10
>
> Thanks for the pointer!
> Any hints how to avoid this are very welcome.
Maybe a committer using Java 1.4 could try to reproduce the bug, 
recompile the classes and check them in?

HTH,
Renaud
>
> -- Andreas
>
>

-- 
Renaud Richardet
COO America
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
office +1 857 776-3195                     mobile +1 617 230 9112
renaud.richardet <at> wyona.com              http://www.wyona.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: BUILD FAILED java.lang.UnsupportedClassVersionError (Unsupported major.minor version 49.0)

Posted by Andreas Hartmann <an...@apache.org>.
Renaud Richardet wrote:
> I had an error while trying to build Lenya trunk today:
> 
> ren@ren-ubuntu:~/src/lenya-1.4.x-purevirgin$ ./build.sh
> Buildfile: build.xml
> 
> BUILD FAILED
> java.lang.UnsupportedClassVersionError: 
> org/apache/lenya/cms/ant/CopyJavaSourcesTask (Unsupported major.minor 
> version 49.0)
> 
> Total time: 2 seconds
> 
> This is probably due to the recent changes in:
> 
> A    tools/anttasks/org/apache/lenya/cms/ant/TwoTuple.java
> U    tools/anttasks/org/apache/lenya/cms/ant/CopyJavaSourcesTask.class
> [...]
> 
> To fix it, I deleted the current .class files in 
> tools/anttasks/org/apache/lenya/cms/ant/ and run
> ./build.sh compile-build-tasks

Strange ... maybe it's due to my Java version?

Thanks for the pointer!
Any hints how to avoid this are very welcome.

-- Andreas


-- 
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
andreas.hartmann@wyona.com                     andreas@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org