2014-01-11 34 views
0

我爲InelliJ IDEA(MacOSX)安裝了插件CHelper,它不能正常工作。我有一個編譯任務問題的問題,你可以看到下面的日誌。CHelper Codeforce/Topcoder插件問題

Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: /src/test/A - Maze.task (No such file or directory) 
    at net.egork.chelper.tester.NewTester.test(NewTester.java:41) 
    at net.egork.chelper.tester.NewTester.main(NewTester.java:23) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) 
Caused by: java.io.FileNotFoundException: /src/test/A - Maze.task (No such file or directory) 
    at java.io.FileInputStream.open(Native Method) 
    at java.io.FileInputStream.<init>(FileInputStream.java:120) 
    at java.io.FileInputStream.<init>(FileInputStream.java:79) 
    at net.egork.chelper.tester.NewTester.test(NewTester.java:39) 
    ... 6 more 

事件日誌:二十點12分53秒編撰1秒成功完成

chelper.properties

smartTesting=true 
archiveDirectory=/src/archive 
defaultDirectory=/src/test 
extensionProposed=true 
outputClass=java.io.PrintWriter 
excludePackages=java.,javax.,com.sun. 
outputDirectory=/src 
author= 
libraryMigrated=true 
failOnIntegerOverflowForNewTasks=false 
inputClass=java.util.Scanner 
enableUnitTests=true 
testDirectory=/src/test 

一些圖片,以澄清我的問題/問題。

enter image description here

誰能幫我解決這個問題在我的配置?

謝謝!

回答

0

檢查在項目構建路徑中選擇的輸出文件夾。這些未編譯的文件是否位於build文件夾的src文件夾中?我敢打賭,他們並不是因爲大多數項目構建者只會複製已編譯的類文件。如果是這種情況,您需要Google將資源文件夾複製到Eclipse。

+0

我沒有使用Eclipse,其他Class不需要編譯爲Main工作,因爲Main調用了TaskA.class(A - Maze.task)它會工作正常,那麼這不是問題。關於輸出文件夾選擇的作品不錯,你可以看到錯誤,不要指責。問題是IO無法看到路徑* .Task進入構建Main。 – Andriel