Use just "${java.home}" for JRE path, or "${java.home}/.." usually for JDK.- Alexey.
wolverine my wrote:
Hi!
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 this
<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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-- ------------------------------------------------------------------------ / Alexey N. Solofnenko MDL Information Systems, Inc. work: 510-357-2222x1726 home: http://trelony.cjb.net/ /
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
