ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <>
Subject Re: How to retrieve Java runtime directory
Date Tue, 26 Apr 2005 02:37:29 GMT
Use just "${java.home}" for JRE path, or "${java.home}/.." usually for JDK.

- Alexey.

wolverine my wrote:

>How can we retrieve the directory of the Java runtime which executing
>the Ant's build file?
>I have two Java versions installed and I would like to print the Java
>runtime information when building the programs. Currently, I'm doing
>  <property environment="env"/>
>  <echo message="You are running Java from ${env.JAVA_HOME}"/>
>The problem is that the JAVA_HOME is not guarantee to be set correctly.
>Is there a better way of doing this?
>Appreciate your advice, thank you!
>To unsubscribe, e-mail:
>For additional commands, e-mail:

/ Alexey N. Solofnenko
MDL Information Systems, Inc.
work: 510-357-2222x1726

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message