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 |
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 <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 > |
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 <[hidden email]> 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 >> >> > |
Administrator
|
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" <[hidden email]> > 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 <[hidden email]> 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 >>> >>> >> > |
Free forum by Nabble | Edit this page |