Eclipse: change name of existing package with classes inside

后端 未结 6 1236
清歌不尽
清歌不尽 2020-12-02 18:32

In Eclipse, is it possible to change name of the package if it has name (default package) and has classes inside it?

6条回答
  •  广开言路
    2020-12-02 18:52

    Another option is to go into your src folder in the relevant project folder in your workspace and there, create a new folder. Name that folder as whatever package name you want and put all your .java files into that folder. Refresh eclipse, close the .java files and open from the new location.

提交回复
热议问题