Why can't eclipse resolve class in same package?

后端 未结 17 2051
逝去的感伤
逝去的感伤 2021-01-31 15:56

I hit F5 ~1000 times and restarted eclipse (also with -clean), deleted /bin, but nothing helps. Manually importing DoodleClient does not help. DoodleClient exists and is perfect

17条回答
  •  甜味超标
    2021-01-31 16:16

    I have the same issue every day, and the solution is different every time. :) You can try something like these:

    • Project menu - Clean
    • Project - Maven - Update project (Alt+F5)
    • Project - Refresh
    • Project - Run as - Maven clean
    • Project - Run as - Maven install
    • Restart Eclipse
    • Remove application from servlet container (if it is web app)
    • Pray.. :)

提交回复
热议问题