본문 바로가기

일반

Syntax error, annotations are only available if source level is 5.0

이클립스 새로 설치 하거나 workspace 를 옮기게 되면


기존 작성된 project 들이 


Syntax error, annotations are only available if source level is 5.0


에러 발생하면서 프로젝트가 빨게지는 현상이 발생 할 수 있다.


메뉴 - Proferences - java - compiler

에서 jdk 컴파일을 5.0 이상으로 설정해주자.