On 10 Dec 2007, at 14:25, Roman SchXnbichler wrote:

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.

If you're using the shell you have to update the environment as well, closing the shell will do that (i don't know any other way under windows).

Michele


Greets
Roman

---- Original Message ----
From: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to