简体   繁体   English

RHEL Eclipse无法加载JNI共享库libjvm.so

[英]RHEL Eclipse Failed to load the JNI shared library libjvm.so

I installed a eclipse on the rhel. 我在罗素上安装了一个月食。 After I configured the environment besides jdk,I had a problem. 在配置除jdk之外的环境后,我遇到了问题。

Failed to load the JNI shared library libjvm.so

I searched the Internet for a solution to this problem. 我在互联网上搜索了此问题的解决方案。 They said that I should modify a configuration file. 他们说我应该修改配置文件。

/etc/sysconfig/selinux / etc / sysconfig / selinux

But I couldn't find it there. 但我在那里找不到。

https://unix.stackexchange.com/questions/85304/what-is-the-safe-way-to-allow-java-7-to-run-on-selinux https://unix.stackexchange.com/questions/85304/what-is-the-safe-way-to-allow-java-7-to-run-on-selinux

A bug in the SELinux targeted policy causes the libjvm.so to be labeled incorrectly as type java_exec_t instead of textrel_shlib_t. SELinux目标策略中的错误导致libjvm.so被错误地标记为java_exec_t类型而不是textrel_shlib_t类型。 So you can either disable selinux by editing /etc/selinux/config file 因此,您可以通过编辑/ etc / selinux / config文件来禁用selinux

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-Enabling_and_Disabling_SELinux.html or giving the command setenforce 0 https://access.redhat.com/site/documentation/zh-CN/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-Enabling_and_Disabling_SELinux.html或提供命令setenforce 0

Thanks & Regards, 感谢和问候,
Alok 阿洛克

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM