2013-11-09 39 views
1

我已經嘗試清理並驗證我的項目,重新啓動Eclipse和我的計算機,並且我的java類文件不會在編輯器中打開。另外,我嘗試從工作區中刪除項目並重新導入它,但沒有運氣。有誰知道它可能是什麼?Java類不會在Eclipse中打開

+2

'.java'或'.class'? – Maroun

+0

@Maroun Maroun - 對不起,.java – invictvs1

+0

在我的項目中探索者 – invictvs1

回答

1

試試這個Right Click on File -> Open With -> Java Editor

enter image description here

確保您在Java perspective.

enter image description here

嘗試清潔蝕。與日食開始

eclipse --clean 

希望這會有所幫助。

+0

他剛纔說沒有工作。 – Maroun

+0

是的,這很奇怪,因爲我只是在做一些工作,它從無處開始。 – invictvs1

+0

@invictvs再試一次。我已經更新了我的答案。 –

2

Window - > Reset Perspective對我有用