본문 바로가기

프로그래밍/JAVA

“Cannot switch on a value of type String for source level below ..” error in Eclipse

반응형

I faced the same issue when I tried to deploy using the Ant tool.

The solution that worked for me was:

  • Right click on project, and then click Properties
  • Go to Java Build Path
  • Go to JRE System Library
  • Execution Environment was selected; I instead selected Alternate JRE and then jre7 (as shown below)

enter image description here

 

반응형