Why is my Eclipse Java package being treated as a folder?

后端 未结 14 834
失恋的感觉
失恋的感觉 2021-01-04 00:14

My Eclipse Java package is treated as a folder; can anyone suggest what\'s wrong?

14条回答
  •  没有蜡笔的小新
    2021-01-04 00:17

    Creating a package makes an older one instead.

    I had the same problem, and I was not able to solve it. But I suggest this, as a possibility. After copying and moving classes between packages, any file, it could be that the classpath has different information and that it hasn't been updated.

    After having read some comments above, I now am only using source folders instead the standard source Folder "src". Inserting packages in any new source folder always runs.

提交回复
热议问题