Missing .classpath file in Eclipse project

后端 未结 10 954
傲寒
傲寒 2021-02-04 06:11

I have recently returned to a project after not using it for a couple of weeks. The project was not created in Eclipse it was imported, and there is no \'.classpath\' file in t

相关标签:
10条回答
  • 2021-02-04 06:48

    I had a similar problem after changing my project to Gradle. When I right-clicked on javaw.exe->Properties in the 'debug' view, I saw the classpath was (mostly) missing, for instance the 'bin' directory containing the classes wasn't there.

    Solution for me was just to delete the 'run debug configuration' and create a new one. After that the classpath was included and I could run it from Eclipse again.

    Hope this helps someone out there.

    0 讨论(0)
  • 2021-02-04 06:50

    Go to your Project in WorkSpace. And then change your files' attribute from hidden.

    Also, then close-open your project and then clean it.

    This should work.

    0 讨论(0)
  • 2021-02-04 06:57

    Go to the project folder and remove hidden property for the ".classpath" file. Hope this helps. Thanks.

    0 讨论(0)
  • 2021-02-04 06:58

    The below solution worked for me.

    Go to your project folder --> Right click folder --> Properties --> In general tab, Uncheck the attribute(last field), Read-only (Only applies to this folder) option.

    Then try adding jars in eclipse.

    Hope this helps

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