You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Chris Muktar <ch...@wikijob.co.uk> on 2009/03/25 15:07:19 UTC
Nutch Trunk Java requirement
On the current nutch trunk, what is the minimum Java implementation that is
required to run it? I am currently on Sun Java 5.0 (binary JRE) and am
getting errors of the following nature.
bin/nutch crawl urls -dir crawl -depth 3 -topN 50
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
version number in .class file
etc.
Any help much appreciated!
Chris.
Re: Nutch Trunk Java requirement
Posted by Dennis Kubes <ku...@apache.org>.
Sorry, current hadoop version requires java 6 not java 5.
Dennis Kubes wrote:
> Nutch trunk requires java 6 because the current Hadoop version we are
> using requires java 5. We need to change the java requirement in the
> build.xml.
>
> Dennis
>
> schroedi wrote:
>> Yepp. Hands up - also the same - but only with the newest version (0.9)
>> the old version 0.8 seams to work
>>
>> yanky young wrote:
>>> Hi:
>>>
>>> I have got the same error. And I installed jdk 1.6, then it works.
>>>
>>> It seems a bit weird because I see the javac requirement in the
>>> build.xml is
>>> 1.5 but it broke.
>>>
>>> I guess maybe hadoop jar was compiled in java 1.6 and class
>>> compatibility is
>>> 1.6 so you can't run it in java 1.5.
>>>
>>> yanky
>>>
>>> 2009/3/25 Chris Muktar <ch...@wikijob.co.uk>
>>>
>>>
>>>> On the current nutch trunk, what is the minimum Java implementation
>>>> that is
>>>> required to run it? I am currently on Sun Java 5.0 (binary JRE) and am
>>>> getting errors of the following nature.
>>>>
>>>> bin/nutch crawl urls -dir crawl -depth 3 -topN 50
>>>> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
>>>> version number in .class file
>>>> etc.
>>>>
>>>> Any help much appreciated!
>>>>
>>>> Chris.
>>>>
>>>>
>>>
>>
Re: Nutch Trunk Java requirement
Posted by Dennis Kubes <ku...@apache.org>.
Nutch trunk requires java 6 because the current Hadoop version we are
using requires java 5. We need to change the java requirement in the
build.xml.
Dennis
schroedi wrote:
> Yepp. Hands up - also the same - but only with the newest version (0.9)
> the old version 0.8 seams to work
>
> yanky young wrote:
>> Hi:
>>
>> I have got the same error. And I installed jdk 1.6, then it works.
>>
>> It seems a bit weird because I see the javac requirement in the build.xml is
>> 1.5 but it broke.
>>
>> I guess maybe hadoop jar was compiled in java 1.6 and class compatibility is
>> 1.6 so you can't run it in java 1.5.
>>
>> yanky
>>
>> 2009/3/25 Chris Muktar <ch...@wikijob.co.uk>
>>
>>
>>> On the current nutch trunk, what is the minimum Java implementation that is
>>> required to run it? I am currently on Sun Java 5.0 (binary JRE) and am
>>> getting errors of the following nature.
>>>
>>> bin/nutch crawl urls -dir crawl -depth 3 -topN 50
>>> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
>>> version number in .class file
>>> etc.
>>>
>>> Any help much appreciated!
>>>
>>> Chris.
>>>
>>>
>>
>
Re: Nutch Trunk Java requirement
Posted by schroedi <sc...@gmail.com>.
Yepp. Hands up - also the same - but only with the newest version (0.9)
the old version 0.8 seams to work
yanky young wrote:
> Hi:
>
> I have got the same error. And I installed jdk 1.6, then it works.
>
> It seems a bit weird because I see the javac requirement in the build.xml is
> 1.5 but it broke.
>
> I guess maybe hadoop jar was compiled in java 1.6 and class compatibility is
> 1.6 so you can't run it in java 1.5.
>
> yanky
>
> 2009/3/25 Chris Muktar <ch...@wikijob.co.uk>
>
>
>> On the current nutch trunk, what is the minimum Java implementation that is
>> required to run it? I am currently on Sun Java 5.0 (binary JRE) and am
>> getting errors of the following nature.
>>
>> bin/nutch crawl urls -dir crawl -depth 3 -topN 50
>> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
>> version number in .class file
>> etc.
>>
>> Any help much appreciated!
>>
>> Chris.
>>
>>
>
>
--
Mario Schröder | http://www.ironschroedi.com/de/
Office: +49 361 2152062
Phone: +49 34464 62301 Cell: +49 163 27 09 807
http://www.xing.com/go/invite/6035007.9c143c
Re: Nutch Trunk Java requirement
Posted by yanky young <ya...@gmail.com>.
Hi:
I have got the same error. And I installed jdk 1.6, then it works.
It seems a bit weird because I see the javac requirement in the build.xml is
1.5 but it broke.
I guess maybe hadoop jar was compiled in java 1.6 and class compatibility is
1.6 so you can't run it in java 1.5.
yanky
2009/3/25 Chris Muktar <ch...@wikijob.co.uk>
> On the current nutch trunk, what is the minimum Java implementation that is
> required to run it? I am currently on Sun Java 5.0 (binary JRE) and am
> getting errors of the following nature.
>
> bin/nutch crawl urls -dir crawl -depth 3 -topN 50
> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
> version number in .class file
> etc.
>
> Any help much appreciated!
>
> Chris.
>