RE: [Axis2] - java.lang.UnsupportedClassVersionError: Bad version number in .class file
"Luis D. Arrieta" <[email protected]>
| Newsgroups | gmane.text.xml.axis.user |
|---|---|
| Message-ID | <CY1PR0201MB1548FA6636E534621706EAD397830@CY1PR0201MB1548.namprd02.prod.outlook.com> |
Here is the ST
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at bmsc.transferencias.MovilBilleteraServiceStub.populateAxisService(MovilBilleteraServiceStub.java:69)
at bmsc.transferencias.MovilBilleteraServiceStub.<init>(MovilBilleteraServiceStub.java:120)
at bmsc.transferencias.MovilBilleteraServiceStub.<init>(MovilBilleteraServiceStub.java:111)
at bmsc.transferencias.MovilBilleteraServiceStub.<init>(MovilBilleteraServiceStub.java:154)
at postilion.realtime.bmscmobilewallet.BMSCMobileWallet.callWalletWebservice(BMSCMobileWallet.java:197)
at postilion.realtime.bmscmobilewallet.BMSCMobileWallet.main(BMSCMobileWallet.java:397)
The stack trace points to this line in the src code
[cid:[email protected]]
major version number of the class file for org.apache.axis2.description.AxisService.class is set to Java SE 5.0 = 49 (0x31 hex),
[cid:[email protected]]
This are the configurations for buildpath and run configurations in my eclipse project
[cid:[email protected]]
[cid:[email protected]]
Luis Daniel Arrieta
Advanced Services International, Inc.
Software developer & Junior Consultant
Office Phone Bogotá - Colombia: +57 1 805 1527
Office Phone Miami/Miramar: +1 954 889 1366 / 1476
Office Phone USA: 00 1954.889.13.66
mail: [email protected]<mailto:[email protected]?subject=Contacto>
Website: http://advancedservicesintl.com/
[fb] Advanced Services International<https://www.facebook.com/advancedservicesinternational> [tw] @ADSINTL<https://twitter.com/ADSINTL> [in] Advanced Services International, In.<https://www.linkedin.com/company/advanced-services-international-inc> [gp] Advanced Services International, In.<https://plus.google.com/u/0/+AdvancedServicesInternationalIncMiramar/>
“Lo que sabemos es una gota de agua, lo que ignoramos es el océano” - Isaac Newton)
De: robertlazarski . [mailto:[email protected]]
Enviado el: miércoles, 16 de agosto de 2017 6:46 p. m.
Para: Luis D. Arrieta <[email protected]>
CC: [email protected]; [email protected]
Asunto: Re: [Axis2] - java.lang.UnsupportedClassVersionError: Bad version number in .class file
On Wed, Aug 16, 2017 at 5:38 PM, Luis D. Arrieta <[email protected]<mailto:[email protected]>> wrote:
Hello Robert
Thnx for your help
Unfornatelly i’m force to use java 1.5 execution enviroment so 1.8 is not posible
Its there a way to make axis2 v 1.7.X compatible with JRE 1.5
Sorry but my english its not very good! I hope you understand me
According to the docs, 1.5 is supported by axis2.
https://axis.apache.org/axis2/java/core/docs/installationguide.html#requirements
Are you using the same compiler version to build your class files, as the JDK version running your application container (tomcat) etc? You should use the same major JDK version (1.5 should be ok) for compiling and running the application.
Its hard to help further without a stack trace.
image005.png
(image/png, 673 B) - not displayed
image006.png
(image/png, 640 B) - not displayed
image007.png
(image/png, 653 B) - not displayed
image008.png
(image/png, 696 B) - not displayed
image009.png
(image/png, 13 KB) - not displayed
image002.png
(image/png, 3.6 KB) - not displayed
image004.jpg
(image/jpeg, 44.3 KB) - not displayed
image012.jpg
(image/jpeg, 18.3 KB) - not displayed