Syntax error,annotations are only available if source level is 5.0 解决办法

Syntax error,annotations are only available if source level is 5.0 解决办法: Project->JavaCompiler->Compiler Compliance Level->Select "5.0" or Higher Project->Java Build Path->Libraries->Add Library...->JUnit->Select "JUnit 4.0"->Finish 经过以上设置后可顺利解决问题。

红色的表过经过试验。通过

你可能感兴趣的:(java,JUnit)