Why does my eclipse project not have a build path?

后端 未结 10 1479
南方客
南方客 2021-02-07 18:00

What is the advantage with not having a build path in eclipse? Why is that setting default when it\'s like something you\'d never use? It seems eclipse indigo was developed to m

相关标签:
10条回答
  • 2021-02-07 18:03

    There where no entrys after right click on my projekt in Eclipse. How to click something, wenn build path entries are missing. So my Eclpise didn't detect my java project. I used following Maven command and after that I cleaned the project too. Now Projekt works as expected. So...

    If you are using Maven, try mvn eclipse:eclipse in cmd console in your project directory! Make sure to use the path to your Maven folder for the command.

    For example:

    cd C:\yourEclipseProject\
    
    C:\yourPathToMaven\apache-maven-2.2.1\bin\mvn eclipse:eclipse
    

    This was helping me. After unsuccessful web research, a coworker told me this tip.

    0 讨论(0)
  • 2021-02-07 18:03

    Don't know the reason. But this works for me, so posting it.

    Right click on project -> 'Properties' -> 'Java Build Path'.

    0 讨论(0)
  • 2021-02-07 18:04

    It's not a good practice to commit IDE related files into source control. What if someone in team uses different IDE? It might have been only option at a time when OP asked this question.

    New versions on eclipse (4.x) takes care of this automatically. Probably by observing what kind of source and build files you have in your project.

    0 讨论(0)
  • 2021-02-07 18:06

    I have same problem, but i have solved

    project right click -> properties -> java build path -> src/main/sources

    all remove items on "Excluded", and then that item turn the status "(None)"

    0 讨论(0)
  • 2021-02-07 18:07

    I just had a similar problem and I figured out that I had been choosing General Project instead of Java Project while creating a project. After I chose Java>Project it solved my problem. Maybe it'll solve yours as well.

    After choosing that, eclipse automatically included java libraries as well.

    0 讨论(0)
  • 2021-02-07 18:13

    Nothing above solutions worked for me so i tried below

    Right click on project >> properties >> project facets >> click on java

    0 讨论(0)
提交回复
热议问题