invictvs1
invictvs1

Reputation: 479

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?

Upvotes: 2

Views: 7304

Answers (3)

Kedir Ali
Kedir Ali

Reputation: 1

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

enter image description here

Upvotes: 0

Shaun
Shaun

Reputation: 61

Window -> Reset Perspective worked for me

Upvotes: 6

Sri Harsha Chilakapati
Sri Harsha Chilakapati

Reputation: 11940

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

enter image description here

Make sure you are in the Java perspective.

enter image description here

Try cleaning eclipse. Start eclipse with

eclipse --clean

Hope this helps.

Upvotes: 1

Related Questions