Eclipse Spring Boot assembly path contains duplicate entry

I have been using Eclipse Luna and sprint boot for quite some time. Just today, when I created a new project, I get the following build error,

Build path contains duplicate entry: 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8' for project 'TomcatHttpDemo'

I'm not sure if this is related to this problem, but I tried

properties> Java Build Path > Libraries

and found that the JRE System Library [JavaSE-1.8] was listed twice. I deleted one of them and then cleaned and rebuilt the project. I got a lot of new errors. All these errors are related to the removal of the JRE system library. I even restarted Eclipse several times to fix any lingering errors.

I ran Luna 4.4 and upgraded to Mars 4.5, but the problem continues to persist. I can build my old projects without problems. Using Luna or Mars, old projects are built and executed properly. Every time I try to create a new project, I get a double input error. Any help would be appreciated.

+4
source share
1 answer

if I understand your problem, the problem is with the library with your project, therefore

1.Select your project, then go to the Properties menu.

Figure 2.Java build

3.On the top list of Libraires

4.add a JRE System Library

5. check the runtime, then click on the environment

6. Left-click on Installed JRE

7. "", " "

8.click /yourprograms/java/jdk 1.8

9. "" , , ""

10. , maven

, .

+3

All Articles