your code was compiled with java 1.5 in compatibility mode for 1.4
providing you have only used classes and methods only from the 1.4
runtime libraries, everything will be fine
you need to use another tool to ensure that you have not accidentally
used some 1.5 methods (eg String.isEmpty())
animal-sniffer is one tool to do this check for you
Sent from my [rhymes with tryPod] ;-)
On 17 Sep 2009, at 22:32, raghu guru <[email protected]> wrote:
Hi All,
I use Maven 2.2.1 and it runs on JDK 1.5 and above, but my source
code is
not 1.5 compatible yet, so i configured my compiler plugin as shown
below.
Everything works fine. but when i look into MANIFEST.MF of my jar
file it
shows Build-Jdk: 1.5.0_13. So how do i confirm that my code were
compiled
with 1.4 only not with 1.5 ??
Please Help
....
.....
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<verbose>true</verbose>
<executable>C:\JDK\ibm-jdk-1.4\bin\javac</executable>
<compilerVersion>IBM-JDK-1.4</compilerVersion>
Thanks
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]