ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shilpa Kulkarni <shilp...@gmail.com>
Subject Re: Need help with jdk1.6.0_11 build
Date Fri, 02 Apr 2010 22:49:38 GMT
Thank you reno & Greg for your help!

Have a good weekend.

Shilpa

On Fri, Apr 2, 2010 at 3:31 AM, reno <reno.rkcrew@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 <shilpayk@gmail.com>
>> wrote:
>>
>>
>>
>>> Corrected subject for the post below.
>>>
>>> On Thu, Apr 1, 2010 at 5:13 PM, Shilpa Kulkarni <shilpayk@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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message