原文:Eclipse出現錯誤:The selection cannot be launched,and there are no recent launches

剛裝了eclipse,想寫個Java程序測試一下能不能用,結果一run就出現錯誤,Debug也是同樣的錯誤,錯誤內容為:the selection cannot be launched,and there are no recent launches.由於是初學者,對於Java完全不懂,就上網搜索發現說右鍵項目選擇run再選擇run as application,發現找不到這個。 以下是代碼 發現 ...

2018-09-18 15:51 0 5115 推薦指數:

查看詳情

關於eclipse出現The selection cannot be launched,and there are no recent launches

出現這個問題的時候,應分為兩種情況,第一種為當你要運行的文件無main函數時,第二種為你要運行的類有main函數時 兩種問題總的解決方法就是先配置運行。也可能是程序主函數的問題。 對第一種情況:你找到一個有main函數的類,然后將其運行一下,當然是要成功運行,然后就相當於運行配置 ...

Mon Apr 02 05:03:00 CST 2018 0 13953
eclipse出現 the selection cannot be run on any server 解決辦法

有一次我導入了一個tomcat是9.0版本的文件(我的eclipse用的是8.5版本的),改了jar包后還是發現會出現 the selection cannot be run on any server, 后來我就找到我的eclipse: D:\eclipse\workspace-jee ...

Wed Jul 15 19:15:00 CST 2020 0 1214
the selection cannot be run on any server錯誤解決方法

1.問題 導入war包后運行jsp 顯示:   the selection cannot be run on any server 2.問題原因 Dynamic Web Module 的版本與server不匹配。Dynamic Web Module的版本可以通過右鍵項目名-> ...

Sun May 17 22:56:00 CST 2020 0 8290
eclipse出現build path 錯誤

右擊本項目-build path-config build path-libraries-發現有選項是帶錯誤符號,於是點擊edit然后點擊alternative jre選擇安裝了的jre就解決問題了 ...

Fri Jul 14 16:14:00 CST 2017 0 1738
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM