Eclipse中,Ant編譯提示:Could not find the main class.Program will exit.

解決方法:

右鍵build.xml --> Run As --> External Tools Configurations

選擇JRE頁面,然後選中Run in the same JRE as the workspace,Apply下,然後Run,應該就可以了

 

 

發佈了185 篇原創文章 · 獲贊 151 · 訪問量 49萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章