Eclipse Java Missing required source folder: 'src'

前端 未结 14 869
伪装坚强ぢ
伪装坚强ぢ 2021-01-01 08:48

I imported a jar file into workspace and this is the error I get:

Description Resource Path Location Type
Project \'Interpreter1\'

相关标签:
14条回答
  • 2021-01-01 09:02

    Eclipse wouldn't let me point to an existing (or add a new) source directory. Eclipse's configuration files can be wonky. In my case I should have started simple. Right click the project and click Refresh.

    0 讨论(0)
  • 2021-01-01 09:05

    Right-Click Project --> Build Path --> Configure Build Path-->source-->(Select missing folder or path)-->Add Folder-->Apply-->Ok

    0 讨论(0)
  • 2021-01-01 09:07

    I was confused by this for hours.

    Right click on project -> Build Path -> Configure Build Path -> Add Folder

    0 讨论(0)
  • 2021-01-01 09:07

    In my case eclipse reported this in the Problems view on the parent project which does not have any code. I just delete the error whenever it is reported on this parent project where src folder is really not needed.

    0 讨论(0)
  • 2021-01-01 09:09

    Right-Click Project --> Build Path --> Configure Build Path; unselect the SRC, save, select again.

    This solved my problem.

    0 讨论(0)
  • 2021-01-01 09:09

    Go to the Build Path dialog (right-click project > Build Path > Configure Build Path) and make sure you have the correct source folder listed, and make sure it exists.

    The source folder is the one that holds your sources, usuglaly in the form: project/src/com/yourpackage/...

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