Topic: Eclipse中的Ant的老问题了,哪位帮忙? |
Print this page |
1.Eclipse中的Ant的老问题了,哪位帮忙? | Copy to clipboard |
Posted by: jfml Posted on: 2004-05-19 21:19 Buildfile: D:\Eclipse\Projects\Messenger\build.xml init: [mkdir] Created dir: D:\Eclipse\Projects\Messenger\temp compile source: [javac] Compiling 3 source files to D:\Eclipse\Projects\Messenger\temp [javac] BUILD FAILED: file:/Eclipse/Projects/Messenger/build.xml:15: Un able to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK Total time: 828 milliseconds 每次在Eclipse中运行ant,就提示上述信息,哪位知道什么原因,如何修改,谢谢? |
2.Re:Eclipse中的Ant的老问题了,哪位帮忙? [Re: jfml] | Copy to clipboard |
Posted by: toString Posted on: 2004-05-20 14:10 我也在Eclispe调用Ant编译部分指定Java源文件,没有问题。 你在命令行下执行看看,如果还是不行的话,就和Eclipse无关了,也许就是错误提示中的JAVA_HOME没有设置好,或者,不要说我BT,也许指定的JAVA_HOME\bin目录下javac.exe被误删除了。 |
3.Re:Eclipse中的Ant的老问题了,哪位帮忙? [Re: jfml] | Copy to clipboard |
Posted by: jfml Posted on: 2004-05-20 14:58 命令行下的Ant是正常的 |
4.垃圾一样的Jute [Re: jfml] | Copy to clipboard |
Posted by: jfml Posted on: 2004-05-20 15:00 不过我修改过Eclipse的JRE环境,原来默认的是C:\Program Files里的,我修改到了我的D:\J2SE SDK 1.4.2了 有关系么? |
5.Re:Eclipse中的Ant的老问题了,哪位帮忙? [Re: jfml] | Copy to clipboard |
Posted by: smallnest Posted on: 2004-05-20 15:05 build.xml文件中 <javac forks=true |
6.Re:Eclipse中的Ant的老问题了,哪位帮忙? [Re: jfml] | Copy to clipboard |
Posted by: expresso Posted on: 2004-05-21 11:17 需要在window>properties>ant>runtime>classpath>ant home entriese>add external jars 添加JAVA_HOME/lib/tools.jar |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |