Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ant error with Java 1.5



Hi,

I have just installed the JDK 1.5.0_05 (J2SE50Release3.dmg). When I run ant I get the following error:

javac: invalid flag: -Dant.home=/Developer/Java/Ant/

This happens for any invocation of ant, e.g. calling ant --version or calling ant to compile a build.xml

My invocation of the new javac is done through setting the following environment variable:

JAVACMD=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/ Commands/javac

The javac error is generated by the javac invocation in the ant shell script - it works fine with older java versions and I can find any relevant information about any conflicts between my current ant build and this java version. I am starting to think that simply setting the JAVACMD environment variable is not enough to full switch the compile environment to the new version for the purpose of particular builds. Does anyone have an ideas?

Some relevant version information is:

OSX 10.4.4
javac 1.5.0_05
Apache Ant version 1.6.5 compiled on November 2 2005

kind regards
Matt

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.