将 Ant 与 Flex 结合使用
我在设置 Ant 与 Flex 一起使用时遇到问题。我安装得很好,但当我尝试检查安装时出现此错误:无法找到 tools.jar。
根据我的阅读,我只需将 JAVA_HOME 指向包含 jdk 的目录即可。不幸的是,我不确定我知道我在 Eclipse 中使用的是哪个 jre,而且我在我的机器上搜索了 tools.jar,但它不在那里???
我有一个 C:\Program Files\Java 目录,其中有:
- j2re1.4.2_05
- jdk1.6.0_03
- jre1.6.0.23
在 Eclipse 中 -->视窗 -->首选项--Java-->安装的 JRE,它指向这里:
eclipse-host-distro, C:\Program Files\Adobe\Adobe Flash Builder Plug-in\eclipse-host-distro
我没有使用完整的 JRE 吗?
非常感谢任何提示。先感谢您。
I'm having problems setting up Ant to use with Flex. I install it fine but I get this error when I try and check the install: Unable to locate tools.jar.
From what I've read, I just need to point JAVA_HOME to the directory that contains the jdk. Unfortunately, I'm not sure I know which jre I'm using in Eclipse and also, I do a search for tools.jar on my machine and it's not there???
I have a C:\Program Files\Java directory and there is this in there:
- j2re1.4.2_05
- jdk1.6.0_03
- jre1.6.0.23
In Eclipse --> Windows --> Preferences --Java --> Installed JREs, it's pointing to here:
eclipse-host-distro, C:\Program Files\Adobe\Adobe Flash Builder Plug-in\eclipse-host-distro
Am I not working with a full JRE?
Any tips are greatly appreciated. Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需将 JAVA_HOME 路径指定为
C:\Program Files\Java\jdk1.6.0_03\
,只要正确安装了 JDK,一切都应该没问题。如果这不起作用,获取最新版本并重试。Just specify your JAVA_HOME path as
C:\Program Files\Java\jdk1.6.0_03\
and everything should be good as long as the JDK was properly installed. If that doesn't work, get the latest and try again.