Creating a separate Folder in the same package… [ECLIPSE]

后端 未结 5 1852
一向
一向 2021-02-06 05:58

Is it possible in Eclipse to create a separate Folder in a package? When select \"new --> folder\", my eclipse version always creates a package. But i want the new folder to be

5条回答
  •  轮回少年
    2021-02-06 06:34

    What you might want to do, if you aren't putting code in that folder, is remove the folder from the build path. Right-click on the offending folder in eclipse and choose 'exclude from build path.'

    Or, you may want a different effect:

    Right click on your project and choose add new source folder. Then in that folder, add the correct package folder structure.

    You can have files in the same package located in different folders.

提交回复
热议问题