Eclipse: Class file name must end with .class

问题: 在eclipse里使用ctr+shift+t打开一个类的时候,出现错误:Class file name must end with .class

解决办法:

 

  1. 关闭Eclipse
  2. 删除 workspace/.metadata/.plugins/org.eclipse.jdt.core/*.index
  3. 删除 workspace/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt
  4. 重启 Eclipse

 

参考地址:

http://ruleoftech.wordpress.com/2009/11/04/eclipse-class-file-name-must-end-with-class-exception-in-search/

你可能感兴趣的:(eclipse,wordpress)