changing eclipse's java compiler to jdk7 [duplicate]

本秂侑毒 提交于 2019-11-27 14:28:12

You need to upgrade to at least Eclipse Indigo SR1, which has been out for over a month. See also Eclipse announces full Java 7 support.

As evidence, here's a screen from my Indigo SR1 preferences:

And here's an example of executabele code snippet using diamond operator and ARM:

You need a newer version of Eclipse. At least 3.7SR1.

3.6 Eclipse version is enough. I`m using the same with JDK1.7

Go to Window > Preferences >Java > Installed JREs.

Then click Add... and select Standard VM.

You need to specify the directory of your JRE and give it a name.

When you are done, just check the right JRE in the same window.

By default, the checked JRE is added to the build path of newly created Java projects.

(my Eclipse SDK version is 3.7.0)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!