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

后端 未结 14 649
失恋的感觉
失恋的感觉 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:29

    This kind of issue occur due to missing of java and test folder in the web application

    solution is :

    Right click on the project folder -> properties -> java build path -> order and export and select the java and test folder and add or apply -> ok

    then you should able to add the package in the java folder

提交回复
热议问题