How to set the java.library.path in intelliJ Idea

前端 未结 1 854
说谎
说谎 2020-12-24 10:53

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


        
相关标签:
1条回答
  • 2020-12-24 11:25

    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.

    enter image description here

    Example:

    -Djava.library.path="C:\path\to\where\the\jni\lib\is"

    0 讨论(0)
提交回复
热议问题