Adding folder in eclipse in src directory without making it package

后端 未结 5 1480
盖世英雄少女心
盖世英雄少女心 2020-12-24 02:13

While creating one folder in src directory in one project in eclipse, it makes that folder a package. Is there any way to avoid this folder from automatically being a packag

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-24 02:53

    You need to go to Project -> Properties -> Java Build Path -> Source (tab).

    Remove src from "Source Folders on Build Path"

    Then add src/main as a source folder. If you already have org under main, then your packages should start with org as desired.

提交回复
热议问题