Target JRE in Eclipse

后端 未结 6 872
独厮守ぢ
独厮守ぢ 2020-12-18 12:15

How should I change Target JRE in Eclipse. I was earlier using jdk1.7, now I want to use JDK 1.6. But while running my java program I am getting Unsupported Class Version Er

6条回答
  •  再見小時候
    2020-12-18 12:50

    You should right-click the project and set the Java Build Path to use the 1.6 JDK and at the Java Compiler settings set the compliance level to 1.6.

    If you don't have the 1.6 option, you probably didn't add the 1.6JDK to the Installed JREs list. To do this go to Window > Preferences > Java > Installed JREs and add it there.

提交回复
热议问题