Win a copy of Head First Android this week in the Android forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Changing JRE for ANT within WSAD

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

For some reason it I was not manage changing the JRE to be used by ANT (within WSAD).
I can change the JRE for my project / workbench and the build works fine outside of WSAD, however when I run ANT within WSAD it always uses the IBM JRE 1.3.1
I am using WSAD 5.1.2

thanks in advance for your help
Shraga.
 
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure if it helps you.
In Eclipse there is plugin org.apache.ant_1.6.5
and within this folder in bin subdirectory there is ant.bat which is using JAVA_HOME env var. So maybe you should do the change here.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to configure ant to use a different version of a JVM for executing Java commands, you can do something like this:

<property name="java14.exe" value="${java.home}/../../runtimes/base_v51/java/bin/java.exe" />

<java jvm="${java14.exe}" fork="true" ...etc...

Hope this helps.
[ October 06, 2005: Message edited by: M Stiver ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic