Re: Multiple JDK versions

2013-06-26 Thread virg g
Thank your all for all your suggestions. I am really grateful to you all. Thanks Virg On Thu, Jun 27, 2013 at 6:51 AM, Mark Derricutt wrote: > Ron Wheeler wrote: > >> So always compile with 1.5 and make a package for 1.5 and copy it to >> files with 1.6 and 1.7 names. >> If the managers don't

Re: Multiple JDK versions

2013-06-26 Thread Mark Derricutt
Ron Wheeler wrote: So always compile with 1.5 and make a package for 1.5 and copy it to files with 1.6 and 1.7 names. If the managers don't know how Java JVM works they will be impressed by how fast you can deliver new packages in so many operating systems and really impressed at the speed with

Re: Multiple JDK versions

2013-06-26 Thread Ron Wheeler
https://en.wikipedia.org/wiki/Backward_compatibility In telecommunications and computing , a product or technology is *backward* or *downward compatible* if it can work with input

Re: Multiple JDK versions

2013-06-26 Thread Mark Derricutt
-1 on this. The JDK is *not* 100% backwards compatible. It's FORWARDS compatible yes, but not backwards. One case I know of is that certain String methods in JDK6 went from taking (String s) as an arg, to taking (CharSequence c) as arguments, if compiled against JDK6 -even if targetting 1.5 b

Re: Multiple JDK versions

2013-06-25 Thread Jörg Schaible
Hi Virg, virg g wrote: > Yes you are absolutely right, I totally agree with you. I am asked to > implement these kind of builds. Ahh, OK. Nothing helps against ignorance in the business layer ;-) - Jörg - To unsubscribe, e-ma

Re: Multiple JDK versions

2013-06-25 Thread virg g
Yes you are absolutely right, I totally agree with you. I am asked to implement these kind of builds. On Tue, Jun 25, 2013 at 3:35 PM, Jörg Schaible wrote: > Hi Virg, > > virg g wrote: > > > Yes. We have multiple customers, some of them support 1.5 and others 1.6. > > We need to release both the

Re: Multiple JDK versions

2013-06-25 Thread Jörg Schaible
Hi Virg, virg g wrote: > Yes. We have multiple customers, some of them support 1.5 and others 1.6. > We need to release both the builds with 1.5 and 1.6. [snip] sorry, in this case it simply does not make sense to use different JDKs. If you are able to compile the same sources for JDK 1.5 and

Re: Multiple JDK versions

2013-06-25 Thread Baptiste MATHUS
compiled with 1.5 under 1.6. > > > > > > I am not sure that the value of JAVA_HOME has any effect on compiling. > > > Check the settings in the compile plug-in. > > > > > > Ron > > > > > > > > > On 25/06/2013 1:59 AM, virg g wr

Re: Multiple JDK versions

2013-06-25 Thread virg g
> > I am not sure that the value of JAVA_HOME has any effect on compiling. > > Check the settings in the compile plug-in. > > > > Ron > > > > > > On 25/06/2013 1:59 AM, virg g wrote: > > > >> Hi, I need build my project with multiple jdk

Re: Multiple JDK versions

2013-06-25 Thread Baptiste MATHUS
compiling. > Check the settings in the compile plug-in. > > Ron > > > On 25/06/2013 1:59 AM, virg g wrote: > >> Hi, I need build my project with multiple jdk versions 1.5 and 1.6. I >> > > am using maven compiler plugin to set the compiler based on JAVA_HOME >

Re: Multiple JDK versions

2013-06-24 Thread Barrie Treloar
On 25 June 2013 15:29, virg g <06v...@gmail.com> wrote: > Hi, I need build my project with multiple jdk versions 1.5 and 1.6. I am > using maven compiler plugin to set the compiler based on JAVA_HOME set. Is > it mandatory to set target either 1.5 or 1.6 based on the jdk version i

Re: Multiple JDK versions

2013-06-24 Thread Ron Wheeler
Why do you need to compile with 2 versions? You can run apps compiled with 1.5 under 1.6. I am not sure that the value of JAVA_HOME has any effect on compiling. Check the settings in the compile plug-in. Ron On 25/06/2013 1:59 AM, virg g wrote: Hi, I need build my project with multiple jdk

Multiple JDK versions

2013-06-24 Thread virg g
Hi, I need build my project with multiple jdk versions 1.5 and 1.6. I am using maven compiler plugin to set the compiler based on JAVA_HOME set. Is it mandatory to set target either 1.5 or 1.6 based on the jdk version i want to build. Why because if i set compiler to jdk 1.6, in the debug log it

Re: Multiple JDK Versions

2013-04-08 Thread Stephen Connolly
matter to you > > is the bytecode version, and there are tools such as AnimalSniffer that > can > > help you verify that the bytecode version is the version you believe it > > should be > > > > > > On 8 April 2013 11:41, virg g <06v...@gmail.com> wrote: >

Re: Multiple JDK Versions

2013-04-08 Thread virg g
om> wrote: > > > Hi, > > I want to compile my code with multiple JDK versions 1.4, 1.5, 1.6. I am > > using maven-compiler-plugin 3.0. > > i am changing ${JAVA_1_5_HOME}/bin/javac > parameter > > in maven-compiler-plugin and also set source and target to 1.5. But m

Re: Multiple JDK Versions

2013-04-08 Thread Stephen Connolly
; Hi, > I want to compile my code with multiple JDK versions 1.4, 1.5, 1.6. I am > using maven-compiler-plugin 3.0. > i am changing ${JAVA_1_5_HOME}/bin/javac parameter > in maven-compiler-plugin and also set source and target to 1.5. But my > default JAVA_HOME is 1.6. The source is g

Multiple JDK Versions

2013-04-08 Thread virg g
Hi, I want to compile my code with multiple JDK versions 1.4, 1.5, 1.6. I am using maven-compiler-plugin 3.0. i am changing ${JAVA_1_5_HOME}/bin/javac parameter in maven-compiler-plugin and also set source and target to 1.5. But my default JAVA_HOME is 1.6. The source is getting compiled with 1.5