Windows 10 下Eclipse开发接入Java的demo找不到合适的dll文件“no agora_rtm_sdk in java.library.path”

demo是最新的Java包:Agora_RTM_SDK_for_Linux_Java_v1_3_0.zip
具体错误消息如下:
Exception in thread “main” java.lang.UnsatisfiedLinkError: no agora_rtm_sdk in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at io.agora.common.AgoraServiceJNI.ensureNativeInitialized(AgoraServiceJNI.java:26)
at io.agora.common.AgoraServiceJNI.(AgoraServiceJNI.java:21)
at io.agora.common.Logging.log(Logging.java:26)
at io.agora.common.Logging.e(Logging.java:54)
at io.agora.rtm.internal.RtmClientImpl.initRtmService(RtmClientImpl.java:121)
at io.agora.rtm.internal.RtmClientImpl.(RtmClientImpl.java:116)
at io.agora.rtm.internal.RtmManager.createRtmInstance(RtmManager.java:11)
at io.agora.rtm.RtmClient.createInstance(RtmClient.java:60)
at com.live.thirdsystem.agorartm.RtmJavaDemo.init(RtmJavaDemo.java:84)
at com.live.thirdsystem.agorartm.RtmJavaDemo.main(RtmJavaDemo.java:272)

看到你在其他帖子里的回复了:grinning:

Agora_RTM_SDK_for_Linux_Java_v1_3_0.zip 只能在 linux 环境下运行的~

嗯,我也发现这个问题了,但是能不能提供一个window-Java的SDK呢,毕竟现在还是有window下开发的用户

根据产品排期,目前暂时是没有计划的。我们会将你的需求反馈给相关同事进行评估规划哈。

好的

终于自己解决了,加载agora_rtm_sdk.dll文件就行了。解决方案参考如下:

优秀!