512
技術社區[雲棲]
Syntax error, annotations are only available if source level is 5.0
原文:https://heisetoufa.iteye.com/blog/621396
Syntax error,annotations are only available if source level is 5.0
解決辦法:Project->Properties->Java Compiler->Compiler Compliance Level選擇5.0或者以上的jdk版本
Project->Java Build Path->Libraries->Add Library...->JUnit->Select "JUnit 4.0"->Finish 經過以上設置後可順利解決問題。
最後更新:2017-04-02 06:51:39