The declared package does not match the expected package “”

前端 未结 21 2047
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-01 09:05

I am using Eclipse and have not used Java for sometime. However, I can compile my code on the command-line just fine and generate the necessary .class files. In

21条回答
  •  Happy的楠姐
    2020-12-01 09:15

    I resolved the problem by following these steps:

    1. Select the project - Right click - java build path.

    2. In source tab - you change the src to src/main/java.

    3. Eclipse will reorder all the project.

提交回复
热议问题