2017-06-14 51 views
-2

我剛開始的項目非常簡單。 我只有這個類和它的作品 enter image description here錯誤:創建存儲庫後無法找到或加載主類eclipse git

現在我想和大家分享我的項目罰款(沒有做,但打印),所以我做了以下步驟: 右擊項目>>團隊>>分享項目..

我得到了下面的窗口 - enter image description here

所以我上創建按下時,出了名的新的本地庫比壓完成,並再次完成。

現在即時通訊面臨的錯誤 - 錯誤:無法找到或加載主類encryptor.Encryptor

我做了什麼錯的,更重要的我該如何解決?

使用 -

的Eclipse版本:Mars.1版本(4.5.1) 的JavaSE-1.8(JRE 1.8.0_73)

+0

對不起,我downvotes,這是一個完全合法的問題。 – VonC

+0

下面我的建議有用嗎?如果是的話,不要忘記加註,否則你的所有問題最終都會被刪除(https://meta.stackexchange.com/a/92006/6309) – VonC

+0

爲了使它成爲一個更好的問題,你可以使用在你的情況下使用的Eclipse,Java和Git的確切版本? – VonC

回答

1

初始化git倉庫必須在自己當前的Eclipse項目設置沒有影響(.classpath和.project)

但是,這個錯誤has been seen before,而簡單的解決方案是重新啓動Eclipse。
檢查錯誤是否仍然存在。

OP Paz Reingold增加在評論:

After looking over the problem again, I realize something mess up after I create new local repository, because I switched the workspace and than it did not recognize the JRE System Libary.
I needed to add it again (Can check it by right click on project >> properties >> Java Build Path >> Libaries)

+0

再次查看問題後,我在創建新的本地存儲庫後意識到一些問題,因爲我切換了工作區,並且它沒有識別JRE系統庫,因此我需要再次添加它(可以通過右鍵單擊項目來檢查它>>屬性>> Java Build Path >> Libaries) – Paz

+1

@PazReingold Well spotted:that actually will help others。不要忘記閱讀https://stackoverflow.com/help/why-vote和https://stackoverflow.com/help/accepted-answer – VonC

相關問題