编译Ant时JUnit的问题

在编译Ant源码时出现了以下错误:

BUILD FAILED
/tmp/apache-ant-1.8.2/build.xml:986: The following error occurred while executing this line:
/tmp/apache-ant-1.8.2/build.xml:778: We cannot build the test jar unless JUnit is present,
      as JUnit is needed to compile the test classes.


把junit.jar添加到CLASSPATH之后,再执行“source /etc/profile”还是不行。关于这个问题,我在以下网页找到了答案:http://web.archiveorange.com/archive/v/bnxdGqvdgVMSsMDezfFT


提问者所遇到的问题和我的类似:

Parchet Michaël <parc...@hotmail.com> Mon Apr 16 2007 02:37:22 GMT+0800 (CST)

Hello,

I'm looking for some help to install and use apache-ant on mandriva linux.=
=20

I tried to compile source distribution but I receved the following error
message:

builb.xml:911  We cannot build the test jar unless JUnit is present,

as JUnit is needed to compile the test classes.

Total time: 12 seconds

... Failed Building Ant Distribution !

Bootstrap FAILED

I createad a CLASSPATH variable but this failed

Thanks for any help and suggestions

Battant

PS i work on manriva linux 2007


最佳答案:

Kevin Jackson <foam...@gmail.com> Mon Apr 16 2007 11:27:01 GMT+0800 (CST)
 Hello,

Hi,
Hide quoted text
> I tried to compile source distribution but I receved the following error
> message:
When I compile from source I use bootstrap.sh followed by build.sh
Hide quoted text
>
> builb.xml:911  We cannot build the test jar unless JUnit is present,
>
> as JUnit is needed to compile the test classes.
>
> Total time: 12 seconds
>
> ... Failed Building Ant Distribution !
>
> Bootstrap FAILED
>
> I createad a CLASSPATH variable but this failed
>
Any CLASSPATH variable that you set will be ignored by the bootstrap &
build scripts as they manage the build classpath

Check in the source code under lib/optional, there should be a junit
jar there.  If there isn't, copy a junit jar (v3.8.2) into
lib/optional and try running bootstrap.sh again




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值