Thanks Again, Is there any properties available that shows compiled with 1.4, may be if its available i want to include into MANIFEST.MF
or is there a way to just confirm it On Thu, Sep 17, 2009 at 4:57 PM, Stephen Connolly < [email protected]> wrote: > sorry, I missed your pom snippet on this small screen > > your classes were compiled with java 1.4 > > your jar was packaged up by a java 1.5 jre > > Sent from my [rhymes with tryPod] ;-) > > On 17 Sep 2009, at 22:50, raghu guru <[email protected]> wrote: > > thanks for replying >> >> is this means, that configuring compiler version / executable in compiler >> plugin will not have any effect on this?? >> >> i thought by classes are compiled with javac mentioned in executable tag.. >> >> On Thu, Sep 17, 2009 at 4:40 PM, Stephen Connolly < >> [email protected]> wrote: >> >> 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] >>> >>> >>> > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
