user3586943
user3586943

Reputation: 89

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?

Upvotes: 4

Views: 18828

Answers (3)

TheCelio81
TheCelio81

Reputation: 1

just create a package and it will solve the problem. Then relauch your application.

Upvotes: 0

Mohamed Anees A
Mohamed Anees A

Reputation: 4601

Move your main class from the default package to any other package and then a simple refresh would solve the problem.

Upvotes: 8

user3586943
user3586943

Reputation: 89

The problem is that the default packeg is contains a class which is empty but cause problem.As soon as I delete that class the package is delete automatically.

Upvotes: 0

Related Questions