Unbound JavsSE 1.7 libraries in the Java Eclipse Project

I am very new to Java and Eclipse. I am working on a java project that uses Jave SE 1.7. I had a version of Java 1.6 installed on Mac OS. I installed Jave SE 1.7 now to run this project, but JavaSE 1.7 (unbound) displayed in the project libraries section. The project does not compile and does not show many errors. How to link JavaSE 1.7 library to a project?

+4
source share
5 answers

After installing jdk 7 you need to report this to Eclipse. Window -> Preferences -> Java -> Installed JREs.
After that, tell your project which the JRE will use if the new one is not standard.

+3
source

Check out these two panels. Remove unlimited 1.6 JREs and then configure the newly installed 1.7 JRE.

enter image description here

enter image description here

+2
source

To add to the above answers, you must also confirm that the project uses the Java 1.7 compiler level. Right-click in the project and click Properties . Click Java Comiler and verify that Java 1.7 is also installed at the compiler level. See image below. enter image description here

+1
source

Hi, I had this problem too, but for me the 1.8 JRE was unrelated. The process for resolving this issue remains the same.

  • Go to Eclipse -> Settings
  • Java β†’ Installed JRE
  • You will see Java SE 6 already and checked.
  • To see the other JREs that you have installed, click the Search button.

enter image description here 5. Now you will see the other JREs that you installed, now mark the JRE you want to use and restart Eclipse.

+1
source

For Eclipse on Windows:

Select Windows-> Preferences-> Java-> Installed JREs-> Add.

enter image description here

Select the type of JRE and click Next.

enter image description here

Select "Directory ..." and find the jre7 folder, usually located under C: \ Program Files \ Java \ jre , click "Finish".

enter image description here

After adding, select jre7 and click OK.

enter image description here

0
source

Source: https://habr.com/ru/post/1468859/


All Articles