打開(kāi)某些EXE文件時(shí)提示“Please define EXE4J_JAVA_HOME或者java.lang.ClassNotFoundException: com.exec.EBRIDGE”
[重要通告]如您遇疑難雜癥,本站支持知識(shí)付費(fèi)業(yè)務(wù),掃右邊二維碼加博主微信,可節(jié)省您寶貴時(shí)間哦!
這兩天在研究泛微云橋eBridge,這玩意兒是個(gè)好東西,不過(guò)不過(guò)在測(cè)試過(guò)程中也出現(xiàn)了很多的問(wèn)題,有個(gè)軟件打開(kāi)就是,如下圖
No JVM could be found on your system.
Please define EXE4J_JAVA_HOME
to point to an installed 64-bit JDK or JRE or download a JRE from www.java.com.
我以為這是我沒(méi)有安裝JAVA里JDK似的,可是我明明已經(jīng)安裝了,啥都搞定了吧,然后運(yùn)行又提示,如下圖
java.lang.ClassNotFoundException: com.exec.EBRIDGE
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
在上述解析中看到了exe4j,我以為這是遇到依賴(lài)lib包無(wú)法找到的問(wèn)題,但我又找了exe4j依然無(wú)果,這到底是哪里問(wèn)題,琢磨了好久才發(fā)現(xiàn),是因?yàn)閖dk包不正確導(dǎo)致的;
解決辦法就是,要用到jdk-8u181-windows-x64 這個(gè)JDK才可以;
延伸閱讀:在此也記錄一個(gè)CSDN大佬一個(gè)網(wǎng)址;
持續(xù)同步更新于官網(wǎng)? ?Java最新JDK和API下載
https://blog.csdn.net/jzycloud/article/details/114123530
問(wèn)題未解決?付費(fèi)解決問(wèn)題加Q或微信 2589053300 (即Q號(hào)又微信號(hào))右上方掃一掃可加博主微信
所寫(xiě)所說(shuō),是心之所感,思之所悟,行之所得;文當(dāng)無(wú)敷衍,落筆求簡(jiǎn)潔。 以所舍,求所獲;有所依,方所成!