我使用Eclipse開發我的程序作爲我的IDE。我曾經使用File|Export| Runnable JAR file
選項爲客戶端創建dist build。從Eclipse導出jar時出現「找不到主要方法從給定的啓動配置」錯誤
我正在使用Eclipse中的Run或(經常)調試按鈕來處理項目(所以我使用有效的主方法來配置項目)。
不幸的是,當我創建的構建昨天,當我試圖運行應用程序,我已經下列錯誤:
Failed to load Main-Class manifest attribute from My.jar
後來,當我重試出口,我發現在導出日誌以下問題:
Could not find main method from given launch configuration
我不知道可能會導致這個問題。我想我的項目配置中沒有改變任何東西。我正在測試我的版本,所以我確定這個選項用來正確工作。
我會很感激任何幫助。
有時您可能需要重新啓動您的DIE,如果您使用一個。 [見本] [1] [1]:http://stackoverflow.com/questions/13527869/could-not-find-main-method-from-given-launch-configuration-when-using -javasca – ABData 2015-02-12 10:17:13
有時,如果使用IDE,可能需要重新啓動IDE。 [見本] [1] [1]:http://stackoverflow.com/questions/13527869/could-not-find-main-method-from-given-launch-configuration-when-using -javasca – ABData 2015-02-12 10:20:37
如果您使用IDE,則可能需要重新啓動IDE。看到這個: http://stackoverflow.com/questions/13527869/could-not-find-main-method-from-given-launch-configuration-when-using-javasca – ABData 2015-02-12 10:21:50