0
我希望有人能幫我解決這個問題。 我使用Ant腳本來編譯我的Java代碼,但我得到了以下錯誤:
螞蟻未能建立在Linux上
[junitreport] Processing /home/sander/workspace/AntIntro/reports/junit/TESTS-TestSuites.xml to /tmp/null1570204945<br />
[junitreport] Loading stylesheet jar:file:/usr/share/eclipse/plugins/org.apache.ant_1.8.2.v20120109-1030/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl<br />
[junitreport] : Error! The first argument to the non-static Java function 'replace' is not a valid object reference.<br />
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.<br />
[junitreport] : Fatal Error! Could not compile stylesheet<br />
[junitreport] Failed to process /home/sander/workspace/AntIntro/reports/junit/TESTS-TestSuites.xml
我使用:
- 的Eclipse 3.7.2
- OpenJDK 7的
- 64的Archlinux
- JUnit 4中
- 螞蟻1.7.2
希望有人能幫助我,提前謝謝
查看從這裏回答:http://stackoverflow.com/questions/10607151/error-the-first-argument-to-the-non-static-java-function-replace-is-not-a-val – dan