Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete default package in Eclipse

Tags:

java

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?

like image 914
user3586943 Avatar asked Mar 20 '23 16:03

user3586943


1 Answers

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

like image 64
Mohamed Anees A Avatar answered Mar 22 '23 06:03

Mohamed Anees A