简体   繁体   中英

Delete default package in Eclipse

I Have DataLayer and logicLayer as packages in my project. I want to delete the default package since I do not need it. But When I delete I got the following error.

Error: Could not find or load main class

How can I slove this problem?

将您的主类从默认包移动到任何其他包,然后简单的刷新将解决问题。

问题是默认的packeg包含一个空的类,但会导致问题。一旦删除该类,包就会自动删除。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM