简体   繁体   中英

Java classes won't open in Eclipse

I've tried cleaning and validating my project, restarting both Eclipse and my computer and my java class files won't open in the editor. Also, I've tried deleting the project from my workspace and reimporting it and no luck. Does anyone know what it might be?

Window -> Reset Perspective 对我有用

Try this Right Click on File -> Open With -> Java Editor

在此处输入图片说明

Make sure you are in the Java perspective.

在此处输入图片说明

Try cleaning eclipse. Start eclipse with

eclipse --clean

Hope this helps.

make sure that a single click is selected for open mode. if you go to preference setting, it will be the first thing you will see

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM