使用spring-boot-devtools导致在Eclipse下的UnsatisfiedLinkError问题
来源:互联网 发布:剑灵网络延迟高怎么办 编辑:程序博客网 时间:2024/05/30 19:33
在Eclipse中运行报UnsatisfiedLinkError错的原因:使用了spring-boot-devtools包,与java的System.loadLibrary冲突
解决方法自然就是在pom中去掉对spring-boot-devtools包的依赖
========================================================================
原文地址:https://stackoverflow.com/questions/43477908/java-spring-boot-application-with-opencv-unsatisfiedlinkerror-under-eclipse-if
I have made a Spring boot application (1.4.0) with OpenCv dependency also. I installed and configured OpenCv on my mac, I did must compile it for mac... I made a link in java_home/jre/lib/ to the external library /usr/local/share/OpenCV/java/libopencv_java320.dylib .
If I run the jar from terminal (not under eclipse) all it's all right, but if I run the application under Eclipse it can't find the native library and I get a java.lang.UnsatisfiedLinkError: org.opencv.imgcodecs.Imgcodecs.imread_1(Ljava/lang/String;)J when I make Mat matScreenshot = Imgcodecs.imread(absolutePathScreenshot);
I found an usefull post https://github.com/spring-projects/spring-boot/issues/3315 that take me to the right way:in my pom.xml I included the dependency spring-boot-devtools that conflict with the System.loadLibrary ...
When I turn off the dependency, the application run correctly under Eclipse too.
I found this solution after days of research, I put this 'answer' here hoping it will be helpfull
阅读全文
0 0
- 使用spring-boot-devtools导致在Eclipse下的UnsatisfiedLinkError问题
- Spring-boot-devtools使用记录
- spring-boot-devtools 不同ClassLoader引起的问题
- idea使用spring-boot-devTools无效的解决方法
- Spring Boot示例 - 3. 使用spring-boot-devtools
- 89. Spring boot devtools使用异常【从零开始学Spring Boot】
- 在Eclipse下使用Maven开发Spring Boot应用
- 在Eclipse下使用Maven开发Spring Boot应用
- spring boot devtools
- Spring Boot devtools实例
- spring-boot-devtools在Idea中热部署方法
- 在Eclipse编辑spring-boot出现问题
- 极其简单的 使用IDEA 中 实现springboot 热部署 (spring boot devtools版)
- Spring Boot入门一:在Eclipse中使用Spring boot
- Intellij IDEA 使用Spring-boot-devTools无效解决办法
- Intellij IDEA 使用Spring-boot-devTools无效解决办法
- Spring Boot系列教程三:使用devtools实现热部署
- SpringBoot学习:使用spring-boot-devtools进行热部署
- 位运算符及其应用
- Centos7.2 Apache根据User-Agent设置访问禁止
- android Launcher3 设置默认桌面应用
- VM虚拟机安装WindowsXp_SP3全过程
- java.lang.ProcessBuilder.command(String command)方法实例 代替命令行方式启动程序
- 使用spring-boot-devtools导致在Eclipse下的UnsatisfiedLinkError问题
- hql 语法与详细解释
- 阿里云播放器单击切换播放/暂停
- Android中AOP实践之二场景篇
- Java设计模式3:装饰者模式
- 前端~初学自用~面向对象
- centos7.2 在同一台服务器中,同时运行多个tomcat
- Dockerfile脚本示例:Python3+Protobuf+wxPython
- 云