[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ant-user
Subject:    RE: Incorrect bytecode version stamp
From:       "Jan Tosovsky" <j.tosovsky () email ! cz>
Date:       2016-12-21 19:40:35
Message-ID: 00c301d25bc2$1a0e6620$4e2b3260$ () tosovsky () email ! cz
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic