3
的FindBugs:FindBugs的問題與螞蟻
[findbugs] Executing findbugs from ant task
[findbugs] Running FindBugs...
[findbugs] java.lang.NoClassDefFoundError: org/apache/bcel/classfile/ClassFormtException
[findbugs] Caused by: java.lang.ClassNotFoundException: org.apache.bcel.classfile.ClassFormatException
[findbugs] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[findbugs] at java.security.AccessController.doPrivileged(Native Method)
[findbugs] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[findbugs] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[findbugs] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[findbugs] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[findbugs] Could not find the main class: edu.umd.cs.findbugs.FindBugs2. Program will exit.
[findbugs] Exception in thread "main"
我得到與螞蟻執行FindBugs的,雖然我一直在所需的文件夾FindBugs的和必要的jar文件這個問題。
我使用findbugs 1.3.2和bcel 5.2。
如何解決這個問題?
[findbugs] Output saved to bugs/reports/findbugs.xml
非常感謝您的回覆。 Ant版本是我使用的1.7.1。還有什麼要做? – sindhu
@sindhu。請再次閱讀答案。您尚未指定您正在使用的findbugs ANT任務的版本。我引用了findbugs文檔,其中指出findbugs對修訂號碼很敏感,最後我提供了一個使用ivy下載findbugs的所有依賴項的解決方案,它將整齊地解決您前進的問題。 –
@ Mark O'Connor。再次感謝您的迴應 – sindhu