java.library.path中没有sapjco3

2020-09-22 05:57发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中) java.lang.Unsat...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


java.lang.UnsatisfiedLinkError:java.lang.Runtime.loadLibrary0(Runtime.java:849)处java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)处java.library.path中没有sapjco3。 com.sap.conn.jco.rt.DefaultJCoRuntime.registerNativeMethods(DefaultJCoRuntime.com)上的lang.System.loadLibrary(System.java:1088)在com.sap.conn.jco.rt.DefaultJCoRuntime.loadJCoLibrary(DefaultJCoRuntime.java:772) com.sap.conn.jco.rt.JCoRuntime.registerNatives(JCoRuntime.java:1200)处com.sap.conn.rfc.driver.CpicDriver。(CpicDriver.java:792)处com.sap.conn.jco.rt. conn.rfc.engine.DefaultRfcRuntime.getVersion(DefaultRfcRuntime.java:36)位于com.sap.conn.rfc.api.RfcApi.RfcGetVersion(RfcApi.java:238)位于com.sap.conn.jco.rt.MiddlewareJavaRfc。 (MiddlewareJavaRfc.java:217)com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:98)com.sap.conn.jco.rt.JCoRuntimeFactory。(JCoRuntimeFactory.java:23) .sap.conn.jco.rt.RuntimeEnvironment。(RuntimeEnvironment.java:43)在sun.reflect.NativeConstruct 位于java.lang.reflect.Constructor.newInstance(sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)处的orAccessorImpl.newInstance0(Native方法),位于sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)处的sun.reflect。 com.sap.conn.jco.ext.Environment.getInstance(Environment.java:155)处com.sap.conn.jco.ext处java.lang.Class.newInstance(Class.java:374)处的java:526) .environment.isSessionReferenceProviderRegister(Environment.java:421)在de.hybris.platform.sap.core.jco.runtime.SAPJCoSessionReferenceProvider.init(SAPJCoSessionReferenceProvider.java:72)在de.hybris.platform.sap.core.jco.runtime .SAPJCoReferenceProviderLifecycle.init(SAPJCoReferenceProviderLifecycle.java:28)位于sun.reflect.NativeMethodAccessorImpl.invoke0(本地方法)位于sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)位于sun.reflect.DelegatingMethodAccessorImpl.invoke :43)在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory上的java.lang.reflect.Method.invoke(Method.java:606)在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1638) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.org)上的invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1579)在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509) 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)在org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:296)在org.springframework.beans。 org.spr的factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) org.springframework.beans.factory.support上的ingframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)在org.springframework.beans.factory.support上的AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)。 位于org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)的DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)位于org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)处 .hybris.platform.core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:98)位于de.hybris.platform.core.HybrisContextFactory $ GlobalContextFactory.build(HybrisContextFactory.java:176)位于de.hybris.platform.core.HybrisContextHolder.getGlobalInstanceCached (HybrisContextHolder.java:134)在de.hybris.platform.core.HybrisContextHolder.getGlobalInstance(HybrisContextHolder.java:113)在de.hybris.platform.core。 位于de.hybris.platform.cache.impl.RegionCacheAdapter.getController(RegionCacheAdapter.java:75)的Registry.getSingletonGlobalApplicationContext(Registry.java:978)位于de.hybris.platform.cache.impl.RegionCacheAdapter.getOrAddUnit(RegionCacheAdapter.java) 205)位于de.hybris.platform.cache.AbstractCacheUnit.get(AbstractCacheUnit.java:180)位于de.hybris.platform.persistence.type.ComposedType_HJMPWrapper $ FindByCodeExact1FinderResult.getFinderResult(ComposedType_HJMPWrapper.java:1811)位于de.hybris.platform .persistence.type.ComposedType_HJMPWrapper.ejbFindByCodeExact(ComposedType_HJMPWrapper.java:1870)在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesslectIororImpl.java:57) (DelegatingMethodAccessorImpl.java:43),位于de.hybris.platform.util.Utilities.callMethod(Utilities.java:1072),位于java.lang.reflect.Method.invoke(Method.java:606),位于de.hybris.platform。 util.Utilities.callMethod(Uti 位于de.hybris.platform.persistence.framework.HomeInvocationHandler.invoke的lities.java:1062)(位于com.sun.proxy。$ Proxy5.findByCodeExact(Unknown Source)的dev.hybris.platform.persistence(HomeInvocationHandler.java:93) .type.TypeManagerEJB.findByCodeExact(TypeManagerEJB.java:271)位于de.hybris.platform.persistence.type.TypeManagerEJB.getComposedType(TypeManagerEJB.java:459)位于de.hybris.platform.util.migration.DeploymentMigrationUtil.migrateSelectedDeployments(DeploymentMigrationUtil .java:458)位于de.hybris.platform.core.AbstractTenant.migrateCoreTypes(AbstractTenant.java:896)位于de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:694)位于de.hybris.platform。 de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:571)处的core.AbstractTenant.doStartUp(AbstractTenant.java:650)de.hybris.platform.core.Registry.activateTenant(Registry.java:632) 在de.hybris.platform.core.Registry.activateMaster上的de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:476) 在de.hybris.platform.core.Registry.startup(Registry.java:420)在de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:178)的Tenant(Registry.java:539) org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)上的.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:77)在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java :4973),位于org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150),位于org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150),位于org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)。 org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1549)的ContainerBase $ StartChild.call(ContainerBase.java:1559)在java.util.concurrent.FutureTask.run(FutureTask.java:262) 在java.util.concurrent处java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) .ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)

4条回答
骆驼绵羊
2020-09-22 06:26

我在Mac中遇到了同样的问题(我的版本是10.13.3)。 我将以下2个文件从扩展名sapcorejco/lib/darwinintel64/libsapjco3.jnilib和sapjco3.jar从扩展名sapcorejco/lib/复制到了/your/path/to/VM/jdkVersion/jre/lib/ext,并且已解决

一周热门 更多>