java 編譯後 執行出現 Could not find the main class: 等 錯誤
我是用IDEA編寫的Java Maven專案。我在本地編譯後執行沒有問題,
可在客戶的機器(windows2000)上執行就出現Could not find the main class: 等 錯誤
這個問題主要是java的版本不對應
起初我以為是java環境變數沒有設定正確。
在系統中發現之前有個安裝版的Java 1.6 而專案需要java 1.8 32位
執行java -version發現是 1.6的版本
解決方法:
第一步將jdk1.6.0_45目錄下的所有檔案移除至另一個目錄下做好備份。
再將java 1.8的 JDK32_jb51目錄下的所有檔案複製到 jdk1.6.0_45目錄中
第二步將jre6目錄下的所有檔案移除至另一個目錄下做好備份。
再將java 1.8的 JDK32_jb51目錄中的jre目錄下的所有檔案複製到 jre6 目錄中
再執行java -version發現 java版本就是 1.8 了
再次啟動java程式就不會報錯了。
相關推薦
java 編譯後 執行出現 Could not find the main class: 等 錯誤
我是用IDEA編寫的Java Maven專案。我在本地編譯後執行沒有問題, 可在客戶的機器(windows2000)上執行就出現Could not find the main class: 等 錯誤
使用composer 出現Could not find a matching version of package xxx
今天使用composer 安裝一個包,開始我指定了版本,報錯 但是我後來,沒有指定版本,還是報錯??
Could not find the Qt platform plugin windows錯誤解決方法
在PyCharm中執行PyQt5視窗程式時,出現了下圖所有的錯誤提示。 出現該問題的原因是環境變數沒有新增。
[k8s]Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
檢視容器資源報錯 kubectl top nodes kubectl top pods [root@master ~]# kubectl top nodes Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
Linux安裝python3.8時,編譯過程中報錯Could not build the ssl module!
技術標籤:【-------Python------】PythonPythonssl 一、 Python編譯安裝缺失模組_ctypes build correctly but finished with this message:
java執行時 報錯 Error: Could not find or load main class test
報錯 Error: Could not find or load main class test可能原因:1、沒有配置環境變數2、當java指令碼中還有package定義時,需要建立package名字的資料夾,將.java和.class檔案放到資料夾中,執行時也需要帶上檔案路徑
Spring中@Async註解執行非同步任務 & @Async Could not find unique TaskExecutor bean; NoUniqueBeanDefinitionException;
Spring中@Async註解執行非同步任務 https://segmentfault.com/a/1190000015190901 引言 在業務處理中,有些業務使用非同步的方式更為合理。比如在某個業務邏輯中,把一些資料存入到redis快取中,快取只是一個輔助的
執行wpscan報錯Could not find 'nokogiri' (~> 1.8.0)
/usr/local/lib/site_ruby/2.7.0/rubygems/dependency.rb:313:in `to_specs\': Could not find \'nokogiri\' (~> 1.8.0) - did find: [nokogiri-1.10.9] (Gem::MissingSpecVersionError)
只有被測APK時執行Robotium測試專案Logcat報錯“Could not find class 'com.jayway.android.robotium.solo.Solo'&...
這個問題出現的原因是測試包在手機上執行時找不到Robotium庫。也就是說Robotium庫沒有打包到測試apk裡面來。那麼這個問題是怎麼出現的呢?正常來說,按照網上的很多教程,我們是這樣子把Robotium庫加到我
Python:安裝opencv出現錯誤Could not find a version that satisfies the requirement numpy==1.13.3 (from versions: 1.14.5, 1.14.6, 1.15.0rc2, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0rc1, 1.16.0rc2,
安裝opencv的時候,出現numpy的版本不匹配,解除安裝了不匹配的版本,重新安裝卻是一點用都沒有,後面嘗試了一下這裡的提示pip更新,居然安裝成功了,看來pip的版本過低真是誤事啊。
java編譯後的檔案出現xx$1.class的原因及解決方式
java編譯後的檔名字帶有$接數字的就是匿名內部類的編譯結果,接名字的就是內部類的編譯結果
java.io.IOException: Could not find resource com/xxx/xxxMapper.xml
java.io.IOException: Could not find resource com/xxx/xxxMapper.xml 報錯內容: org.apache.ibatis.exceptions.PersistenceException:
Spring Cloud報錯java.lang.IllegalArgumentException: Could not find class
技術標籤:Spring Cloudjava 在學習Spring Cloud的過程中碰到了一個奇怪的問題:java.lang.IllegalArgumentException: Could not find class [org.springframework.boot.actuate.autoconfigure.health.HealthInd
Mybatis 報錯 java.io.IOException: Could not find resource mybatis-config.xml
技術標籤:mybatis 問題描述 在使用mybatis過程中,程式需要讀取mybatis-config.xml配置檔案,IDEA預設將這個資原始檔放在resource目錄下,啟動專案報錯。內容如下:
“‘labelme_json_to_dataset’不是內部或外部命令,也不是可執行的程式”以及“could not find conda environment:labelme”報錯
技術標籤:機器學習 發現問題解決問題1:cmd到底做錯了什麼 第一次用labelme來做分類,小郭順利幫助我完成了anaconda環境下labelme的安裝。並且這個軟體對傻瓜小白(我自己)挺友好的,沒用多久我就完成了我的“
Mac下將Python程式打包執行時報錯 Could not find a suitable TLS CA certificate bundle, invalid path: */cacert.pem
技術標籤:Python專欄python 文章目錄 前言錯誤原因解決方法1. 在使用requests的py檔案中新增如下命令,然後重新打包2. 將`cacert.pem`檔案拷入重新打的包中
docker執行postgresql出現could not locate a valid checkpoint record的產生原因及如何解決
這是我們測試環境遇到的一個問題,詳見這篇文章:docker 部署資料庫並通過資料卷恢復資料 -https://www.modb.pro/db/109870
解決org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource **/**/dao/**Mapper.xml問題
1. 問題分析 出現此問題的原因是資源過濾的問題,編寫在DAO包中的XML檔案沒有被打包。
Tensorflow安裝問題: Could not find a version that satisfies the requirement tensorflow
引言: Tensorflow大名鼎鼎,這裡不再贅述其為何物。這裡講描述在安裝python包的時候碰到的“No matching distribution found for tensorflow”,其原因以及如何解決。
【每天學習一點點】Tensorflow2.X 執行問題:Could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED
Tensorflow2.X 執行問題:Could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED Probably you\'re running out of GPU memory.