axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Bad version number in .class file
Date Mon, 10 Dec 2007 14:41:01 GMT
Hi Roman-

this is specific to your environment
whatever class you compiled your aar MUST be == the java runtime you use to
execute
compile with1.6== JRE runtime must be1.6
OR
compile with1.5==JRE runtime must be 1.5

determine the working environment you're colleague is using (echo
%JAVA_HOME%) and replicate (install that java version including set
JAVA_HOME and PATH to working environment) on your machine

HTH/
M--
----- Original Message -----
From: "Roman Schönbichler" <roman.schoenbichler@matkovits.at>
To: <axis-user@ws.apache.org>
Sent: Monday, December 10, 2007 9:25 AM
Subject: Re: Bad version number in .class file


Hi!

Thanks for your reply, here are the variables, so you can be shure
I've checked them.

JAVA_HOME = C:\Programme\Java\jre1.5.0_13
PATH = ...;C:\Program Files\Java\jdk1.5.0_13\bin;C:\Program
Files\ant-1.7.0\bin;c:\Programme\Axis2\bin

I haven't set CLASSPATH since alle jars are in the lib file of the
project.

The funy part is, that the same .aar file works on a colleagues'
computer.

I've also rebuilt alle dependencies of the project, in case one of
them was built with 1.6... without effect.

Greets
Roman

---- Original Message ----
From: Michele.Mazzucco@ncl.ac.uk
To: axis-user@ws.apache.org
Subject: Re: Bad version number in .class file
Date: Mon, 10 Dec 2007 14:06:02 +0000

>Please check all the paths once again (i.e. JAVA_HOME, CLASSPATH and
>
>PATH). If you compile your code against javac 1.6 it won't run in
>java 1.5.
>
>
>Michele
>
>
>On 10 Dec 2007, at 12:41, Roman SchXnbichler wrote:
>
>> Hey Guys!
>>
>> If generated a WS (with wsdl2java) which worked perfectly in JRE1.6
>> and Axis2.
>>
>> Now I've got the problem, that it needs to be run under JRE1.5
>>
>> I've removed alle Java 1.6 components, and reconfigured my path and
>> java_home variables to point to the jre/jdk 1.5 directories.
>> I've also changed the JRE in Eclipse to jre1.5.
>>
>> Then I've recreated the WS, using wsdl2java (it told me that it
>uses
>> jre1.5).
>>
>> After that I've filled in the buisness logic, and made a new .aar
>> file.
>>
>> When I try to deploy the .aar file, axis tells me:
>> or.apache.axis2.deployment.DeploymentException:
>> java.lang.UnsupportedClassVersionError: Bad version number in
>.class
>> file
>>
>> I don't have a clue where this could come from, since I've rebuilt
>> everything!
>>
>> I hope someone can give me some hints!
>>
>> Greets
>> Roman
>>
>>
>>
>---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message