You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by chaohua wang <ch...@gmail.com> on 2010/06/23 01:44:25 UTC

class file has wrong version 50.0, should be 49.0

Hi Folks,

I am workign on an ofbiz project. the ofbiz version has been used for almost
1 year.
we use j2sdk1.5.0_01 to compile and run.

but hen i use ant to compile.
I got this exception:

 [javac]
C:\sgcsworkspace\SGCS\framework\catalina\src\org\ofbiz\catalina\container\SslAcceleratorValve.java:26:
cannot access javax.servlet.ServletException
    [javac] bad class file:
C:\sgcsworkspace\SGCS\framework\catalina\lib\servlet-api.jar(javax/servlet/ServletException.class)
    [javac] class file has wrong version 50.0, should be 49.0
    [javac] Please remove or make sure it appears in the correct
subdirectory of the classpath.
    [javac] import javax.servlet.ServletException;


my environment is  1.5.0_01. JVAHOME=C:\JavaAPI\j2sdk1.5.0_01

javac and java version are 1.5.0_01.
I can compile it at another machine which has the same setup.
servlet-api.jar is from the same repository.

I don't know reason why my computer has this issue.

Please help

Chwang

Re: class file has wrong version 50.0, should be 49.0

Posted by Jacques Le Roux <ja...@les7arts.com>.
https://cwiki.apache.org/confluence/display/OFBIZ/System+Requirements

Help yourself: from the OFBiz main page use the wiki search, type "1.5", or jdk, or...

Jacques

From: "chaohua wang" <ch...@gmail.com>
> no, i didn't change. i only saw they changed tomcat jar file to 5.5.28
> But it can compile in Eclipse.
> Do i need to change jre env?
> 50.0=1.6 49.0=1.5
> There is no 1.6 jdk in my computer.
> 
> 
> 
> On Tue, Jun 22, 2010 at 5:54 PM, BJ Freeman <bj...@free-man.net> wrote:
> 
>> what have you changed recently?
>>
>> =========================
>> BJ Freeman
>> http://bjfreeman.elance.com
>> Strategic Power Office with Supplier Automation  <
>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>> Specialtymarket.com  <http://www.specialtymarket.com/>
>>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>> Linkedin <
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>> >
>>
>>
>> chaohua wang sent the following on 6/22/2010 4:44 PM:
>>
>>  Hi Folks,
>>>
>>> I am workign on an ofbiz project. the ofbiz version has been used for
>>> almost
>>> 1 year.
>>> we use j2sdk1.5.0_01 to compile and run.
>>>
>>> but hen i use ant to compile.
>>> I got this exception:
>>>
>>>  [javac]
>>>
>>> C:\sgcsworkspace\SGCS\framework\catalina\src\org\ofbiz\catalina\container\SslAcceleratorValve.java:26:
>>> cannot access javax.servlet.ServletException
>>>     [javac] bad class file:
>>>
>>> C:\sgcsworkspace\SGCS\framework\catalina\lib\servlet-api.jar(javax/servlet/ServletException.class)
>>>     [javac] class file has wrong version 50.0, should be 49.0
>>>     [javac] Please remove or make sure it appears in the correct
>>> subdirectory of the classpath.
>>>     [javac] import javax.servlet.ServletException;
>>>
>>>
>>> my environment is  1.5.0_01. JVAHOME=C:\JavaAPI\j2sdk1.5.0_01
>>>
>>> javac and java version are 1.5.0_01.
>>> I can compile it at another machine which has the same setup.
>>> servlet-api.jar is from the same repository.
>>>
>>> I don't know reason why my computer has this issue.
>>>
>>> Please help
>>>
>>> Chwang
>>>
>>>
>>
>


Re: class file has wrong version 50.0, should be 49.0

Posted by chaohua wang <ch...@gmail.com>.
no, i didn't change. i only saw they changed tomcat jar file to 5.5.28
But it can compile in Eclipse.
Do i need to change jre env?
50.0=1.6 49.0=1.5
There is no 1.6 jdk in my computer.



On Tue, Jun 22, 2010 at 5:54 PM, BJ Freeman <bj...@free-man.net> wrote:

> what have you changed recently?
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation  <
> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin <
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> >
>
>
> chaohua wang sent the following on 6/22/2010 4:44 PM:
>
>  Hi Folks,
>>
>> I am workign on an ofbiz project. the ofbiz version has been used for
>> almost
>> 1 year.
>> we use j2sdk1.5.0_01 to compile and run.
>>
>> but hen i use ant to compile.
>> I got this exception:
>>
>>  [javac]
>>
>> C:\sgcsworkspace\SGCS\framework\catalina\src\org\ofbiz\catalina\container\SslAcceleratorValve.java:26:
>> cannot access javax.servlet.ServletException
>>     [javac] bad class file:
>>
>> C:\sgcsworkspace\SGCS\framework\catalina\lib\servlet-api.jar(javax/servlet/ServletException.class)
>>     [javac] class file has wrong version 50.0, should be 49.0
>>     [javac] Please remove or make sure it appears in the correct
>> subdirectory of the classpath.
>>     [javac] import javax.servlet.ServletException;
>>
>>
>> my environment is  1.5.0_01. JVAHOME=C:\JavaAPI\j2sdk1.5.0_01
>>
>> javac and java version are 1.5.0_01.
>> I can compile it at another machine which has the same setup.
>> servlet-api.jar is from the same repository.
>>
>> I don't know reason why my computer has this issue.
>>
>> Please help
>>
>> Chwang
>>
>>
>

Re: class file has wrong version 50.0, should be 49.0

Posted by BJ Freeman <bj...@free-man.net>.
what have you changed recently?

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin 
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


chaohua wang sent the following on 6/22/2010 4:44 PM:
> Hi Folks,
>
> I am workign on an ofbiz project. the ofbiz version has been used for almost
> 1 year.
> we use j2sdk1.5.0_01 to compile and run.
>
> but hen i use ant to compile.
> I got this exception:
>
>   [javac]
> C:\sgcsworkspace\SGCS\framework\catalina\src\org\ofbiz\catalina\container\SslAcceleratorValve.java:26:
> cannot access javax.servlet.ServletException
>      [javac] bad class file:
> C:\sgcsworkspace\SGCS\framework\catalina\lib\servlet-api.jar(javax/servlet/ServletException.class)
>      [javac] class file has wrong version 50.0, should be 49.0
>      [javac] Please remove or make sure it appears in the correct
> subdirectory of the classpath.
>      [javac] import javax.servlet.ServletException;
>
>
> my environment is  1.5.0_01. JVAHOME=C:\JavaAPI\j2sdk1.5.0_01
>
> javac and java version are 1.5.0_01.
> I can compile it at another machine which has the same setup.
> servlet-api.jar is from the same repository.
>
> I don't know reason why my computer has this issue.
>
> Please help
>
> Chwang
>