java.lang.UnsatisfiedLinkError in Linux

后端 未结 2 1147
时光说笑
时光说笑 2021-01-19 10:39

I\'ve managed to get into a linux machine to try the HotKey library suggested in this answer.

I\'ve compiled the sample code and now I run the program and I\'ve got

2条回答
  •  無奈伤痛
    2021-01-19 11:16

    Did you try -Djava.library.path=/path/to/library?

    EDIT: Re-reading the error message, it looks to me that the native library you're loading is trying to link to glibc version 3.4.9, which apparently is not installed. Can you check what version of glibc you have? What Linux distro are you running?

    EDIT2: The problem seems to be narrowed down to libstdc++. I'm about to the edge of my knowledge, but this thread might be useful. It suggests upgrading to gcc 4.2; from the comments, you appear to have version 4.1.2. Let me know if that doesn't work.

提交回复
热议问题