问题描述
有谁可以帮助我如何解决此错误:
Could anyone please help how do I solve this error:
Native code library failed to load.
java.lang.UnsatisfiedLinkError: no ts-jni in java.library.path
I我是第一次使用IDEA IDE,并一直使用Resin_4.0.37作为服务器来测试我的工作。
一旦我在调试模式下启动我的lcoal服务器,它会停留大约1-2分钟然后突然下降并通过给我上述错误而断开连接。
I am using IDEA IDE as a first time, and have been using Resin_4.0.37 as a server to test my work.As soon as I start my lcoal server in debug mode it stays for approximately 1-2 mins and then suddenly it drops down and get disconnected by giving me the above error.
我正确设置了我的Windows环境变量;并且还在我的IDE智能中执行了以下操作:
I have set my Windows environmental variable correctly; and have also did the following in my IDE intelliJ:
FILE->Project Structure->set Global Libraries->a. Java path and b. Resin library path.
任何人都可以建议我,我做错了什么以及如何在intelliJ中设置本机库IDEA解决上述错误。
Can any one please suggest me, what am I doing wrong and how do I set native library in intelliJ IDEA to solve the mentioned error.
任何帮助将不胜感激。如果我做错了,也要纠正我。
Any help would be appreciated. Also do correct me if I am doing something wrong.
谢谢!
推荐答案
如果从IntelliJ运行程序,则可以在 VM选项中设置
java.library.path
运行/调试配置
对话框中的输入字段。
If you run your program from IntelliJ then you can set the java.library.path
in the VM options
input field in the Run/Debug Configurations
dialog.
这篇关于如何在intelliJ Idea中设置java.library.path的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!