후니의 블로그

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

프로그래밍/JAVA

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

Huzy Huzy 2016.12.29 16:34

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

 

0 Comments
댓글쓰기 폼