Changing Java Version From Within Eclipse

时光怂恿深爱的人放手 提交于 2019-11-27 09:03:21

In eclipse go to Window -> Preferences -> Java -> Compiler, there you can change the java versions. Hope it helps.

Ideally if we want to have two different versions of Java [say 1.6 and 1.7], then we should have two workspace defined accordingly to avoid any mixup. We can also change the Project Facets if our projects has facets that is.

In Eclipse Follow steps given below: 1) Windows -> Preferences -> Java -> Compiler and as per the image set the compliance compiler level as per your requirements.

2) Windows -> Preferences -> Java -> Installed JRE's and check if your required jre/jdk is available or not as given in image below:

3) Right Click on Your Project and go to Java Build Path and check if your required Library is available or not as per image given below:

4) Now you can edit the JRE System Library or add one by clicking on button's available on last image's right side, then a pop up as given below will open up. Here, you can change the execution environment [default values also can be set]

In myeclipse select the project -> properties -> java compiler -> there you can specify jdk version.

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