Skip to content
Advertisement

Why is my Eclipse Java package being treated as a folder?

My Eclipse Java package is treated as a folder; can anyone suggest what’s wrong?

Advertisement

Answer

Worst case, you’ll have to delete the folder and recreate as a java package.

  • Save the Java classes somewhere else in your Java project by refactoring
  • Delete the folder and the underlying folder structure
  • Create a Java package
  • Move the Java classes back under the Java package by refactoring
Advertisement