问题背景:搭建公司项目,启动项目遇到的问题。我初次使用macbook pro电脑进行项目开发,网上没有查找到解决方案,无奈在此提交问题,麻烦有空指教下,同事用的win系统启动没有这种错误。
Springboot项目,maven管理,所报jar包所在路径是项目中lib文件下,文件是有的。
涉及到的jar包
sapjco3.jar
sapjco3.dll
libsapjco3.so
控制台错误
java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1863)
at java.lang.Runtime.loadLibrary0(Runtime.java:871)
at java.lang.System.loadLibrary(System.java:1122)
at com.sap.conn.jco.rt.DefaultJCoRuntime.loadLibrary(DefaultJCoRuntime.java:441)
at com.sap.conn.jco.rt.DefaultJCoRuntime.registerNativeMethods(DefaultJCoRuntime.java:307)
at com.sap.conn.jco.rt.JCoRuntime.registerNatives(JCoRuntime.java:969)
at com.sap.conn.rfc.driver.CpicDriver.(CpicDriver.java:955)
at com.sap.conn.rfc.engine.DefaultRfcRuntime.getVersion(DefaultRfcRuntime.java:43)
at com.sap.conn.rfc.api.RfcApi.RfcGetVersion(RfcApi.java:261)
at com.sap.conn.jco.rt.MiddlewareJavaRfc.(MiddlewareJavaRfc.java:200)
at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:73)
at com.sap.conn.jco.rt.JCoRuntimeFactory.(JCoRuntimeFactory.java:23)
at com.sap.conn.jco.rt.RuntimeEnvironment.(RuntimeEnvironment.java:40)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
错误信息过长,仅粘贴一部分