ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Incorrect bytecode version stamp
Date Wed, 21 Dec 2016 04:57:22 GMT
On 2016-12-20, Jan Tosovsky wrote:

> While in MANIFEST can be found 'created by' JDK 7, when that main class is
> executed in JDK 7, executing of the main class fails because of unsupported
> version (major.minor 52.0).

The "Created-by" reflects the JVM that is executing Ant. The class
version is determined by the javac that has been used which can be
different from the one of the JVM running Ant depending on your <javac>
task. For example if you use a forking javac it might be the first
javac.exe that's on the PATH.

Can you show us the <javac> task that is compiling the classes?

Stefan

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


Mime
View raw message