0x00 问题描述
命令行安装weblogic 10.3.6时报错,报错信息如下:
D:\下载\weblogic>"E:Program Files\Java\jdk1.7.0_80\bin\java.exe" -D64 -jar wls1036_generic.jar
Exception in thread "winRegistry" java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library: jni_winx64
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1062)
at com.bea.plateng.common.jni.JNIUtil.loadLibrary(JNIUtil.java:255)
at com.bea.plateng.common.jni.Win32Registry.<clinit>(Win32Registry.java:20)
at com.bea.plateng.common.jni.WinRegistryHelper.getRegistry(WinRegistryHelper.java:35)
at com.bea.plateng.wizard.installer.silent.tasks.WinRegistryTask.execute(WinRegistryTask.java:262)
at com.bea.plateng.wizard.installer.silent.tasks.WinRegistryTask.run(WinRegistryTask.java:251)
at java.lang.Thread.run(Thread.java:745)
0x01 问题原因
原因是jar文件的存放路径中包含中文,只需要更换成英文路径即可。需要格外注意jar存放路径中不能包含空格,中文和特殊字符。
The reason is that the path where the jar is stored contains Chinese, and the replacement path can be installed normally; be careful about spaces, Chinese and special characters in the path.
0x02 参考文献
https://titanwolf.org/Network/Articles/Article?AID=12f143a6-72de-4e88-aafc-6c5fe9cd227a#gsc.tab=0