简体   繁体   中英

how to set specific system JRE due to Eclipse project?

I imported Java project from SVN and want to run it without changing the classpath. I installed JDK 8 (java -version shows

Java(TM) SE Runtime Environment (build 1.8.0_121-b13)

), but on the project I see error:

Unbound classpath container: 'JRE System Library [JavaSE-1.8]' in project

I also added "Standard VM" in Window -> Preferences -> Java -> Installer JREs, but it didn't help. I guess I have to set my system JRE exactly to JRE which is set in the project. But as far as I understand, it's the save version...

You can provide project specific JDK/JRE by right clicking on project and then select configure properties. There you can update java compiler.

Look in the Preferences in 'Java > Installed JREs > Execution Environments'.

Click on 'JavaSE-1.8' and select the JRE to be used.

You can select it on run configuration. Then, click on your run option, and then select JRE overlap.

this example is for eclipse 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM