$ {} env.JAVA_HOME找不到 - 蚂蚁 [英] ${env.JAVA_HOME} not found - Ant
本文介绍了$ {} env.JAVA_HOME找不到 - 蚂蚁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的build.xml文件中,我有这行:
In my build.xml file, I have these lines:
<property environment="env"/>
<echo message="JAVA_HOME is set to = ${env.JAVA_HOME}" />
在某些机器上,这将打印
On some machine, this would print
"JAVA_HOME is set to = /usr/jdk1.6"
但在一些国家,这将打印此
But on some others, it would print this
"JAVA_HOME is set to = ${env.JAVA_HOME}"
有谁知道什么可能导致此?
Does anyone know what might cause this?
感谢
推荐答案
该消息告诉你,蚂蚁是不是能够解决财产 env.JAVA_HOME
;这意味着环境变量 JAVA_HOME
在这台机器没有设置。
The message tells you that Ant was not able to resolve the property env.JAVA_HOME
; this means that the environment variable JAVA_HOME
was not set in that machine.
这篇关于$ {} env.JAVA_HOME找不到 - 蚂蚁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文