2013-09-11 57 views
0

我在rhel上安裝了eclipse。 除了jdk配置好環境之後,我遇到了問題。RHEL Eclipse無法加載JNI共享庫libjvm.so

Failed to load the JNI shared library libjvm.so 

我在網上搜索瞭解決這個問題的方法。他們說我應該修改配置文件。

/etc/sysconfig/selinux

但是我在那找不到它。

回答

0

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

在SELinux的一個錯誤靶向策略導致libjvm.so錯誤地作爲類型java_exec_t代替textrel_shlib_t進行標記。因此,您可以通過編輯要麼禁用SELinux的/ etc/SELinux的/ config文件

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或給予命令setenforce 0

感謝&問候,
阿洛克

+0

感謝您的幫助。 :) –

相關問題