Error "Error creating path" when trying to create a new project in Eclipse

Missing build path entry: org.eclipse.jdt.launching.JRE_CONTAINER / org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType / JavaSE-1,7

I get this error when I create a new project in Eclipse. By the way, I am using Ubuntu.

Can someone help me fix this?

+7
source share
5 answers

This is an old question, but I solved it by modifying the JRE system library and choosing a valid Execution environment in my case (Mac OSX) JRE 1.6

0
source

This error occurs due to the JRE system library. You may not have given a suitable JRE to run the eclipse project. SO follow the steps below.

  • Right-click the project and select properties.
  • Click on the "Java Build Path" link in the menu on the left.
  • In the Java Path window, select the Libraries tab.
  • Make sure that the list is listed in the JRE System library if it is not listed, and you can add it by clicking "Add Library" in the right menu.
  • So, if the JRE System Library is already listed, double-click on the JRE System Library, which shows the error on the Java Library String tab. earlier.
  • Then it will open another window called JRE System Library . Therefore, in this window, select Alternate JRE . From this drop-down list, select your JRE.

In my case, it is java-8-openjdk-amd64 since I am using ubuntu 16.04. You can also select your JRE System library.

+12
source

This is because the JRE is missing from the build path of your project. So try adding a JRE from Windows-> Preferences-> Installed JREs and add a standard JRE. After that, the JRE is added by default to the build path of each project. This should solve the problem.

0
source

I already had the JDK installed, but I still had errors, so I opened the command prompt by finding it in my project: c:\project\proj> . Then I ran mvn clean && mvn install . This solved my problem!

0
source

I solved this by setting up the .classpath file. I am using maven and I deleted the incorrectly configured line in the marked location shown below.

 <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" output="target/classes" path="src"> <attributes> <attribute name="optional" value="true"/> <attribute name="maven.pomderived" value="true"/> </attributes> </classpathentry> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> <attributes> <attribute name="maven.pomderived" value="true"/> </attributes> </classpathentry> <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> <attributes> <attribute name="maven.pomderived" value="true"/> <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> </attributes> </classpathentry> -----some files which is actually deleted in my project, I delete this line and all works fine------ <classpathentry kind="output" path="target/classes"/> </classpath> 
0
source

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


All Articles