RE: Incorrect bytecode version stamp

"Jan Tosovsky" <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.