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

Firman Rauf vii_man at
Mon Mar 7 19:36:24 PST 2011


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?


Firman Azis Rauf

More information about the macports-users mailing list