2014-03-13 56 views
0

我用java & FitNesse的運行測試的情況下......連接錯誤苗條服務器在localhost:8080

而點擊下方圖片的「測試」按鈕,

page

它顯示錯誤如下:

Standard Error: 
Exception in thread "main" java.lang.NoClassDefFoundError: ":build/classes://////var/www/git/vodaware/java/Build:/root/leadout-tests///////var/www/git/vodaware/java/supportLibs/mockito-all-1/9/5/jar:/root/leadout-tests///////var/www/git/vodaware/java/supportLibs/jsp-api/jar:/root/leadout-tests///////var/www/git/vodaware/java/supportLibs/testng-6/8/7/jar:/root/leadout-tests///////var/www/git/vodaware/java/supportLibs/servlet-api/jar:/root/leadout-tests///////var/www/git/vodaware/java/supportLibs/jcip-annotations-1/0/jar 
Caused by: java.lang.ClassNotFoundException: ":build.classes:......var.www.git.vodaware.java.Build:.root.leadout-tests.......var.www.git.vodaware.java.supportLibs.mockito-all-1.9.5.jar:.root.leadout-tests.......var.www.git.vodaware.java.supportLibs.jsp-api.jar:.root.leadout-tests.......var.www.git.vodaware.java.supportLibs.testng-6.8.7.jar:.root.leadout-tests.......var.www.git.vodaware.java.supportLibs.servlet-api.jar:.root.leadout-tests.......var.www.git.vodaware.java.supportLibs.jcip-annotations-1.0.jar 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:323) 
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:268) 
Could not find the main class: ":build/classes:../../var/www/git/vodaware.java/Build:/root/leadout-tests/../../var/www/git/vodaware.java/supportLibs/mockito-all-1.9.5.jar:/root/leadout-tests/../../var/www/git/vodaware.java/supportLibs/jsp-api.jar:/root/leadout-tests/../../var/www/git/vodaware.java/supportLibs/testng-6.8.7.jar:/root/leadout-tests/../../var/www/git/vodaware.java/supportLibs/servlet-api.jar:/root/leadout-tests/../../var/www/git/vodaware.java/supportLibs/jcip-annotations-1.0.jar. Program will exit. 

這個日誌的原因是什麼?請任何人幫助我。

+0

看起來像是fitnesse設置問題或者是fitnesse本身的錯誤 – fge

+0

@fge我開始使用http://i.stack.imgur.com/zuTIh.jpg進行技巧。但是一旦在Ui上顯示錯誤,同時它顯示錯誤,如'在測試系統中註冊錯誤[連接到本地主機上的SLiM服務器的錯誤:8086]'有什麼幫助? – beginner

+0

@fge請幫助我,任何其他建議? – beginner

回答

0

由於錯誤提示,程序無法找到java類。您需要確保 類路徑設置正確,並確保包位置設置正確。

例:

類路徑:富/酒吧/

包:簡/ doe.class

看到它,你正確地提包層次,而在FitNesse的列設置它。

希望這會有所幫助。

相關問題