You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Shilpa Kulkarni <sh...@gmail.com> on 2010/04/02 02:15:02 UTC

Need help with jdk1.6.0_11 build

Corrected subject for the post below.

On Thu, Apr 1, 2010 at 5:13 PM, Shilpa Kulkarni <sh...@gmail.com> wrote:

>
> Hi Everyone,
>
> Just joined the ant mailing list. I am working on getting a build system
> set up. It needs to  produce jdk 1.6.11 binaries. I see following options:
>
> Option 1: Install jdk 1.6.0_11 on the build machine. So ant scripts will
> use it by default. Problem: Not finding this version on web to download.
>
> Option 2: Set build.compiler property to javac1.6. Problem: Here I do not
> have the precision to specify 1.6.0_11. Not sure whether it will really
> matter. Does anyone think it will matter?
>
> Option 3: Do not set build.compiler property. Instead specify target="1.6"
> to javac1.6. Problem: Again I do not have the precision to specify 1.6.0_11.
>
> The build machine is dedicated for one project & will always use same
> compiler version for all its builds. In this case is option 2 better than 3?
>
>
> Is Option1 possible? Can someone help me get this jdk version please?
>
> Shilpa
>
>

Re: Need help with jdk1.6.0_11 build

Posted by Shilpa Kulkarni <sh...@gmail.com>.
Thank you reno & Greg for your help!

Have a good weekend.

Shilpa

On Fri, Apr 2, 2010 at 3:31 AM, reno <re...@free.fr> wrote:

> Greg,
>
> it's better to set the bootclasspath for different jdks (cross-compilation)
> than changing $JAVA_HOME
>
> http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html#crosscomp-example
> :-)
>
> S.
>
>  JDK 1.6.0u11can be found here:
>> http://java.sun.com/products/archive/j2se/6u11/index.html
>>
>> It is possible to run Ant with a particular version of Java (using
>> JAVA_HOME
>> or other) and then use "fork" in javac to specify an alternative version
>> of
>> the Java compiler for the build.
>>
>> The documentation of the javac task shows you how to do this:
>> http://ant.apache.org/manual/CoreTasks/javac.html
>>
>>
>>
>>
>> On Fri, Apr 2, 2010 at 1:15 AM, Shilpa Kulkarni <sh...@gmail.com>
>> wrote:
>>
>>
>>
>>> Corrected subject for the post below.
>>>
>>> On Thu, Apr 1, 2010 at 5:13 PM, Shilpa Kulkarni <sh...@gmail.com>
>>> wrote:
>>>
>>>
>>>
>>>> Hi Everyone,
>>>>
>>>> Just joined the ant mailing list. I am working on getting a build system
>>>> set up. It needs to  produce jdk 1.6.11 binaries. I see following
>>>>
>>>>
>>> options:
>>>
>>>
>>>> Option 1: Install jdk 1.6.0_11 on the build machine. So ant scripts will
>>>> use it by default. Problem: Not finding this version on web to download.
>>>>
>>>> Option 2: Set build.compiler property to javac1.6. Problem: Here I do
>>>> not
>>>> have the precision to specify 1.6.0_11. Not sure whether it will really
>>>> matter. Does anyone think it will matter?
>>>>
>>>> Option 3: Do not set build.compiler property. Instead specify
>>>>
>>>>
>>> target="1.6"
>>>
>>>
>>>> to javac1.6. Problem: Again I do not have the precision to specify
>>>>
>>>>
>>> 1.6.0_11.
>>>
>>>
>>>> The build machine is dedicated for one project & will always use same
>>>> compiler version for all its builds. In this case is option 2 better
>>>> than
>>>>
>>>>
>>> 3?
>>>
>>>
>>>> Is Option1 possible? Can someone help me get this jdk version please?
>>>>
>>>> Shilpa
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Re: Need help with jdk1.6.0_11 build

Posted by reno <re...@free.fr>.
Greg,

it's better to set the bootclasspath for different jdks 
(cross-compilation) than changing $JAVA_HOME
http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html#crosscomp-example
:-)

S.
> JDK 1.6.0u11can be found here:
> http://java.sun.com/products/archive/j2se/6u11/index.html
>
> It is possible to run Ant with a particular version of Java (using JAVA_HOME
> or other) and then use "fork" in javac to specify an alternative version of
> the Java compiler for the build.
>
> The documentation of the javac task shows you how to do this:
> http://ant.apache.org/manual/CoreTasks/javac.html
>
>
>
>
> On Fri, Apr 2, 2010 at 1:15 AM, Shilpa Kulkarni <sh...@gmail.com> wrote:
>
>   
>> Corrected subject for the post below.
>>
>> On Thu, Apr 1, 2010 at 5:13 PM, Shilpa Kulkarni <sh...@gmail.com>
>> wrote:
>>
>>     
>>> Hi Everyone,
>>>
>>> Just joined the ant mailing list. I am working on getting a build system
>>> set up. It needs to  produce jdk 1.6.11 binaries. I see following
>>>       
>> options:
>>     
>>> Option 1: Install jdk 1.6.0_11 on the build machine. So ant scripts will
>>> use it by default. Problem: Not finding this version on web to download.
>>>
>>> Option 2: Set build.compiler property to javac1.6. Problem: Here I do not
>>> have the precision to specify 1.6.0_11. Not sure whether it will really
>>> matter. Does anyone think it will matter?
>>>
>>> Option 3: Do not set build.compiler property. Instead specify
>>>       
>> target="1.6"
>>     
>>> to javac1.6. Problem: Again I do not have the precision to specify
>>>       
>> 1.6.0_11.
>>     
>>> The build machine is dedicated for one project & will always use same
>>> compiler version for all its builds. In this case is option 2 better than
>>>       
>> 3?
>>     
>>> Is Option1 possible? Can someone help me get this jdk version please?
>>>
>>> Shilpa
>>>
>>>
>>>       
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Need help with jdk1.6.0_11 build

Posted by Greg Roodt <gr...@gmail.com>.
JDK 1.6.0u11can be found here:
http://java.sun.com/products/archive/j2se/6u11/index.html

It is possible to run Ant with a particular version of Java (using JAVA_HOME
or other) and then use "fork" in javac to specify an alternative version of
the Java compiler for the build.

The documentation of the javac task shows you how to do this:
http://ant.apache.org/manual/CoreTasks/javac.html




On Fri, Apr 2, 2010 at 1:15 AM, Shilpa Kulkarni <sh...@gmail.com> wrote:

> Corrected subject for the post below.
>
> On Thu, Apr 1, 2010 at 5:13 PM, Shilpa Kulkarni <sh...@gmail.com>
> wrote:
>
> >
> > Hi Everyone,
> >
> > Just joined the ant mailing list. I am working on getting a build system
> > set up. It needs to  produce jdk 1.6.11 binaries. I see following
> options:
> >
> > Option 1: Install jdk 1.6.0_11 on the build machine. So ant scripts will
> > use it by default. Problem: Not finding this version on web to download.
> >
> > Option 2: Set build.compiler property to javac1.6. Problem: Here I do not
> > have the precision to specify 1.6.0_11. Not sure whether it will really
> > matter. Does anyone think it will matter?
> >
> > Option 3: Do not set build.compiler property. Instead specify
> target="1.6"
> > to javac1.6. Problem: Again I do not have the precision to specify
> 1.6.0_11.
> >
> > The build machine is dedicated for one project & will always use same
> > compiler version for all its builds. In this case is option 2 better than
> 3?
> >
> >
> > Is Option1 possible? Can someone help me get this jdk version please?
> >
> > Shilpa
> >
> >
>

Re: Need help with jdk1.6.0_11 build

Posted by reno <re...@free.fr>.
Shilpa,

http://java.sun.com/products/archive/

hope this help
> Corrected subject for the post below.
>
> On Thu, Apr 1, 2010 at 5:13 PM, Shilpa Kulkarni <sh...@gmail.com> wrote:
>
>   
>> Hi Everyone,
>>
>> Just joined the ant mailing list. I am working on getting a build system
>> set up. It needs to  produce jdk 1.6.11 binaries. I see following options:
>>
>> Option 1: Install jdk 1.6.0_11 on the build machine. So ant scripts will
>> use it by default. Problem: Not finding this version on web to download.
>>
>> Option 2: Set build.compiler property to javac1.6. Problem: Here I do not
>> have the precision to specify 1.6.0_11. Not sure whether it will really
>> matter. Does anyone think it will matter?
>>
>> Option 3: Do not set build.compiler property. Instead specify target="1.6"
>> to javac1.6. Problem: Again I do not have the precision to specify 1.6.0_11.
>>
>> The build machine is dedicated for one project & will always use same
>> compiler version for all its builds. In this case is option 2 better than 3?
>>
>>
>> Is Option1 possible? Can someone help me get this jdk version please?
>>
>> Shilpa
>>
>>
>>     
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org