Eclipse: Class filename must end with .class

Just recently upgraded to Eclipse 3.5.1 RC1 and started getting this error in the console when trying to search for classes:

eclipse-index-error

I tried cleaning, closing projects and even downgrading to Eclipse 3.5. No luck. Found this post on stackoverflow.com with the solution:

  1. Close Eclipse
  2. Open/cd into workspace folder
  3. Delete .metadata/.plugins/org.eclipse.jdt.core/*.index
  4. Delete .metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt
  5. Start Eclipse again

Followed those instructions and eclipse is happy to search for classes again.

Leave a Reply