【问题标题】:Getting error when run the build.xml in Cakuban project在 Cakuban 项目中运行 build.xml 时出错
【发布时间】:2013-03-14 11:46:34
【问题描述】:

我们计划使用 Cakupan (Link) 作为 XSLT 单元测试覆盖工具。我们已经下载了示例项目并运行了 build.xml。当时我们赌的是下面的错误。

C:\Cakupan\build.xml:143: java.lang.NoClassDefFoundError: com/thoughtworks/xstream/XStream

我在类路径中设置了所有相关库。波纹管 build.xml 内容可以确保。

<property name="lib.dir" value="lib" />
<path id="classpath.xslt">
   <pathelement location="${lib.dir}/commons-lang-2.1.jar" />
   <pathelement location="${lib.dir}/xstream-1.4.4.jar" />
   <pathelement location="${lib.dir}/xpp3-1.1.4c.jar" />
   <pathelement location="${lib.dir}/saxon9.jar" />
   <pathelement location="${lib.dir}/xalan-2.6.0.jar" />
   <pathelement location="${lib.dir}/${ant.test.lib}" />
   <pathelement location="${lib.dir}/junit-4.10.jar" />
</path>

我已经把所有的罐子放在了 lib 文件夹中。请找到下面的屏幕截图

注意:XStream.class 在 xstream-1.4.4.jar 中可用

请帮我解决这个问题。

【问题讨论】:

    标签: xml unit-testing xslt-2.0 xslt-grouping


    【解决方案1】:

    我们已经在 Patrick(Cakupan 的前任之一 - patrick.oosterveld@gmail.com)的帮助下解决了这个问题。

    我们必须在eclipse的ant runtime classpath定义的全局条目中添加xstream jar和xpp3-1.1.4c jar文件。

    【讨论】:

      猜你喜欢
      • 2015-01-16
      • 1970-01-01
      • 1970-01-01
      • 2015-02-01
      • 2015-06-24
      • 1970-01-01
      • 2012-01-14
      • 2016-04-13
      • 2021-04-13
      相关资源
      最近更新 更多