compiler-errors - TestNG对我来说很好用,但对其他工程师抛出com.googl

我的ANT脚本可以在Linux机器和某些xp VM上正常运行。当另一位工程师试图在本地启动它时,TestNG会引发[testng],原因是:java.lang.ClassNotFoundException:com.google.inject.internal.asm.util.TraceClassVisitor找不到(我的库都在这里)

我以前从未看过此类类(class),也不知道是什么原因导致这种情况仅在他的计算机上发生。我尝试导入asm-util-3.1.jar,但找不到,因为它看起来是com.google.internal.asm.util,而不是org.objcetweb.asm.util。

最佳答案

使用Eclipse TestNG插件时,我们遇到了类似的错误:

testng java.lang.noclassdeffounderror: com/google/inject/internal/Lists

看来Guice的版本可能有所不同
从类路径中加载-Guice 2.0具有上述类
而在Guice 3.0中,它似乎已移至:
com/google/inject/internal/util/Lists

TestNG Eclipse插件的更新版本解决了该问题。

关于compiler-errors - TestNG对我来说很好用,但对其他工程师抛出com.google.inject.internal.asm.util.TraceClassVisitor classnotfoundexception,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3505705/

相关文章:

iphone - 我的Xcode-编译错误只是显示红色的感叹号

flash - 在Flash/AS3中扩展SimpleButton类时出现错误1017

iphone - Xcode4调试

compiler-errors - 打包双字节文件名时出错

visual-studio - 在 Release模式下执行构建/重建解决方案时,VS2003错误

visual-studio-2008 - 从VS2008 Prof迁移到VC++ Express 2

iphone - 找不到库-命令/Developer/Platforms/iPhoneSimulat

asp.net-mvc - 将生成配置更改为生产时的编译错误-C#MVC

gwt - 使用跨站点支持编译 GWT 代码时出错

c# - 在VS 2008解决方案中添加了项目;建立依赖性获取编译器错误CS0246