【轉】eclipse運行 Ant報錯Could not find the main class: org.eclipse.ant.internal.launching.remote.InternalAntRunner. Program


原文地址:http://blog.csdn.net/jiangtaoking/article/details/49151763

Could not find the main class: org.eclipse.ant.internal.launching.remote.InternalAntRunner. 最近更新了eclipse,發現運行ant不好使來了,報的異常如標題所示。然后各種百度,尼瑪!我只想說百度上寫這些bug文檔的人,能不能別亂寫啊,艹。按照上面所說各種嘗試,都不行。沒辦法,還是去Google吧。

I just installed Mars and when I tried to execute a build.xml after checking out an existing and working project I got that error message:

Could not find the main class: org.eclipse.ant.internal.launching.remote.InternalAntRunner. Program will exit.

The solution is to go to Run as → External tools configuration… → JRE where the default was set to “Separate JDK”: jdk1.6.0_31 (I had set up JDKs 6-8 in Preferences after installing). I changed this to “run in the same JRE as the workspace” and now it works.

Bug fix would be to provide a working default configuration with setup. Configuration should be in a way it does not break if the user adds additional JDKs to Preferences.

原文地址:https://bugs.eclipse.org/bugs/show_bug.cgi?id=472599。噢啦,問題搞定!

翻譯:右鍵build.xml文件Run as里選擇External Tools Configuration...


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM