djl
djl copied to clipboard
onnxruntime can not use on windows server2012 r2
Description
when use onnxruntime1.12.1 djl version 0.19.0, can not init onnxruntime engin
Error Message
can not init onnxruntime engin ortEnvironment
Invocation of init
method failed; nested exception is java.lang.UnsatisfiedLinkError: C:\Users\mac
\AppData\Local\Temp\onnxruntime-java4015766116111413390\onnxruntime.dll: Can't f
ind dependent libraries
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPost
Processor.java:660) ~[spring-beans-5.3.27.jar!/:5.3.27]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.j
ava:640) ~[spring-beans-5.3.27.jar!/:5.3.27]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject
(InjectionMetadata.java:119) ~[spring-beans-5.3.27.jar!/:5.3.27]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399
) ~[spring-beans-5.3.27.jar!/:5.3.27]
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1431) ~[spring-bean
s-5.3.27.jar!/:5.3.27]
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) ~[spring-beans
-5.3.27.jar!/:5.3.27]
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5
.3.27.jar!/:5.3.27]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$
doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.27.jar!/:5.3.27]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.27.jar!
/:5.3.27]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:333) ~[spring-beans-5.3.27.jar!/:5.3.27]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:208) ~[spring-beans-5.3.27.jar!/:5.3.27]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:955) ~[spring-beans-5.3
.27.jar!/:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.finish
BeanFactoryInitialization(AbstractApplicationContext.java:920) ~[spring-context-
5.3.27.jar!/:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:583) ~[spring-context-5.3.27.jar!/:5.3.27]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicat
ionContext.refresh(ServletWebServerApplicationContext.java:147) ~[spring-boot-2.
7.11.jar!/:2.7.11]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.
java:731) [spring-boot-2.7.11.jar!/:2.7.11]
at org.springframework.boot.SpringApplication.refreshContext(SpringAppli
cation.java:408) [spring-boot-2.7.11.jar!/:2.7.11]
at org.springframework.boot.SpringApplication.run(SpringApplication.java
:307) [spring-boot-2.7.11.jar!/:2.7.11]
at org.springframework.boot.SpringApplication.run(SpringApplication.java
:1303) [spring-boot-2.7.11.jar!/:2.7.11]
at org.springframework.boot.SpringApplication.run(SpringApplication.java
:1292) [spring-boot-2.7.11.jar!/:2.7.11]
@bijialin
Can you try latest DJL: 0.23.0?
did you try ONNXRuntime directly?
Close old issues
Feel free to re-open it if it can be reproduced in latest version.