How to tell ant to use specific version of JDK in macport

Firman Rauf vii_man at
Mon Mar 7 19:59:57 PST 2011


Apparently sudo command does not export my environment.plist. Haven't found the solution yet, but clearly not a bug in the macport side. 


Firman Azis Rauf

On 08/03/2011, at 2:36 PM, Firman Rauf wrote:

> Hi,
> My subject requires me to use the old JDK 5 and tomcat 5. After googling, I found a way to install JDK 5 in snow leopard. I have set up my JAVA_HOME and ANT_HOME. When I call ant -diagnostics, it correctly shows that it's using JDK 5. However, when I build commons-dbcp, ant still using JDK 6. How do I correct this?
> regards,
> Firman Azis Rauf
> _______________________________________________
> macports-users mailing list
> macports-users at

More information about the macports-users mailing list