• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

run Ant on 1.3.x JRE but compile app. on 1.4.0

 
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've recently experienced the problem described here. To avoid it until a more stable release of the next version of Ant is available, is there a way to run Ant using one JRE while directing Ant to invoke a compiler for a different version. For example, how do I run Ant on 1.3.x while having Ant compile my source code using 1.4.0? I've looked at setting the build.compiler property as described in the javac task, but the output generated by the -verbose command line argument to Ant indicates that Ant is still using what it finds at JAVA_HOME, which is 1.3.1_02.
Thanks for your time,
Craig
 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Craig - Notice that Conor (he is 'the man' with Ant) said on Feb 14 that a fix was in and to try a recent nightly build.
I believe I'd do that ......
G.
 
Craig Demyanovich
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. I did notice the comments that you mention.
Based on my work with Ant, I'm confident that the fix will work, and I may try one of those nightly builds. However, they're tagged as alpha; I don't want to use an alpha release for my main work.
For now, to use Ant and Java 2 SDK 1.4.0, I run Ant with the system property os.name set to "Windows 2000," as one poster from the linked thread mentioned. It somewhat solves the problem that I faced. Ultimately, though, until the next release is stable enough for my main work, I would appreciate any more thoughts on running Ant 1.4.1 on Java 2 SDK 1.3.x while instructing compilation to use Java 2 SDK 1.4.0.
Thanks,
Craig
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic