Home > Software engineering >  I have a default package that I can't delete on Eclipse?
I have a default package that I can't delete on Eclipse?

Time:11-28

I'm not exactly sure how I did this, but I can't remove it.

See below screenshot, I now have a (default package) that is causing me errors.

Screenshot of (default package)

I've gone to the file location and it doesn't exist, if I right click to delete, the delete option is greyed out. I've tried closing and reopening the project as well as refreshing the project and neither work.

File location of SRC folder

Can anyone give me any advice on how to remove this package?

Thank you!

CodePudding user response:

Move your java file from the default package to any other package and then refresh the project issue will be resolved.

CodePudding user response:

I've discovered that's it's because I changed my JRE to 1.8. Upon moving back to JavaSE-16, I have fixed it/the package disappeared.

  • Related