原文:java 編譯后 執行出現 Could not find the main class: 等 錯誤

我是用IDEA編寫的Java Maven項目。我在本地編譯后執行沒有問題, 可在客戶的機器 windows 上運行就出現Could not find the main class: 等 錯誤 這個問題主要是java的版本不對應 起初我以為是java環境變量沒有設置正確。 在系統中發現之前有個安裝版的Java . 而項目需要java . 位 運行java version發現是 . 的版本 解決方法: ...

2022-02-25 09:43 0 1369 推薦指數:

查看詳情

windows 雙擊執行jar包出現:could not find the main class

{一}動機 最近自己寫了個小應用,用於生成子系統樹需要的配置信息,打包為可執行jar發給其他同事使用時雙擊jar包提示“could not find the main class”. 首先當然要檢查一下JRE環境等,經過一番折騰整理如下幾項注意點(首先說明一下是在windows7 ...

Wed Jun 26 00:30:00 CST 2013 0 3436
Could not find the main class

  最近開發了一個短信報警的服務,打成程序包之后,再本地windows啟動(start.bat)沒有問題,但是發到生產環境,報如下錯: Could not find the main class 莫名其妙的報錯,網上查了一下,都無法解決,后來想到既然我本地是正常的,那很有可能是環境問題 ...

Tue May 19 17:37:00 CST 2020 0 1892
javaCould not find or load main class

https://stackoverflow.com/questions/18093928/what-does-could-not-find-or-load-main-class-mean A common problem that new Java developers experience ...

Fri Jul 27 22:35:00 CST 2018 0 2339
could not find the main class, Program will exit java編譯器版本的問題

could not find the main class, Program will exit (很抱歉,如果你希望能更加清楚地看清圖片或是圖上的文字的話,你可以按住 ctrl 不動,然后向上滾動鼠標的滾輪。要改變回來同理向下滾動即可、) -------------------------------------------- ...

Thu Apr 05 02:04:00 CST 2012 0 8982
could not find or load main class

記一篇由於字符編碼導致的無法正常啟動的錯誤 運行環境 win10 英文版本 jdk 1.8 錯誤:could not find or load main class 該項目是海康威視下載的一個SDK,導入到IDEA中,沒想到卻會遇到這問題。 操作步驟如下: 1 下載SDK ...

Wed Dec 18 19:48:00 CST 2019 2 529
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM