ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Tosovsky" <j.tosov...@email.cz>
Subject RE: Incorrect bytecode version stamp
Date Wed, 21 Dec 2016 19:40:35 GMT
On 2016-12-21 Stefan Bodewig wrote:
> 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?

Silly me, I haven't executed 'clean' goal between my attempts so those
originally built classes (in JDK8) were never overwritten when later
creating jars in JDK7.

Jan


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


Mime
View raw message