You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Windows system runs properly, but centos7 runs abnormally. The error message is as follows
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:107)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Caused by: java.lang.UnsatisfiedLinkError: /tmp/opencv_openpnp7949780754583093203/nu/pattern/opencv/linux/x86_64/libopencv_java470.so: /usr/lib64/libm.so.6: version `GLIBC_2.27' not found (required by /tmp/opencv_openpnp7949780754583093203/nu/pattern/opencv/linux/x86_64/libopencv_java470.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1820)
at java.lang.Runtime.load0(Runtime.java:782)
at java.lang.System.load(System.java:1098)
at nu.pattern.OpenCV$LocalLoader.<init>(OpenCV.java:330)
at nu.pattern.OpenCV$LocalLoader.<init>(OpenCV.java:326)
at nu.pattern.OpenCV$LocalLoader$Holder.<clinit>(OpenCV.java:336)
at nu.pattern.OpenCV$LocalLoader.getInstance(OpenCV.java:340)
at nu.pattern.OpenCV.loadLocally(OpenCV.java:323)
at com.test.SpringBootTest.main(SpringBootTest.java:15)
my code
public static void main(String[] args) {
OpenCV.loadLocally();
System.out.println("opencv 加载成功");
}
The Windows system runs properly, but centos7 runs abnormally. The error message is as follows
my code
maven config
System Information
The text was updated successfully, but these errors were encountered: