Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Compliments on a fantastic web site. I have learned so much from my threads and even if sometimes I cannot solve the problem, it gives me the reassurance that I am not the only one putting up with it!..."

Geography

Where in the world do Tek-Tips members come from?

Setting the JDK version in the build.xml

kopite1 (Programmer)
4 Jun 03 5:22
Hi,

How do I set the JDK version in the build.xml. I have tried using:

<property name="${ant.java.version}" value="1.1" />

..but that does not seem to be picked up at compile time, it just continues with the default JAVA_HOME set in my path.
hologram (Programmer)
22 Jul 03 1:57
A work-around solution would be a cmd file with following content (you probably have to remove the environment variable JAVA_HOME) :

set JAVA_HOME=D:\jdk1.3.1_01
set ANT_HOME=D:\Java\soft\jakarta-ant-1.4.1
set path=%path%;%ANT_HOME%\bin;%JAVA_HOME%\bin
cd C:\java\projects\... ==> your source-directory
ant -buildfile C:\Java\ant-scripts\build.xml
pause

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close