能在Eclipse中运行的Java代码放到Intellij IDEA中就无法运行
遇到问题的是一个要用到各种dll的视频聊天解决方案,使用同样的文件但是eclipse可以直接点运行启动,用idea运行的时候提示:Exceptioninthread"ma...
遇到问题的是一个要用到各种dll的视频聊天解决方案,使用同样的文件但是eclipse可以直接点运行启动,用idea运行的时候提示:
Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\AnyChatCoreSDK_Win32_r3830\javasrc\AnyChatDemoForJava\anychatcore4java.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1957)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1882)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1087)
at com.bairuitech.anychat.AnyChatCoreSDK.<clinit>(AnyChatCoreSDK.java:412)
at com.bairuitech.demo.AnychatDemo.initSdk(AnychatDemo.java:49)
at com.bairuitech.demo.AnychatDemo.main(AnychatDemo.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
感觉像是dll的问题但是所有需要的dll都已经放在根目录下然后用eclipse运行的时候完全正常=。=求解!谢啦 展开
Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\AnyChatCoreSDK_Win32_r3830\javasrc\AnyChatDemoForJava\anychatcore4java.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1957)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1882)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1087)
at com.bairuitech.anychat.AnyChatCoreSDK.<clinit>(AnyChatCoreSDK.java:412)
at com.bairuitech.demo.AnychatDemo.initSdk(AnychatDemo.java:49)
at com.bairuitech.demo.AnychatDemo.main(AnychatDemo.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
感觉像是dll的问题但是所有需要的dll都已经放在根目录下然后用eclipse运行的时候完全正常=。=求解!谢啦 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询