You must install selinux-policy-2.4.6-25.e15 or later to use the java -version command with SELinux enabled. If the policy version is incorrect, the system displays this message:
Errorloading: /libjvm.so: cannot restore segment prot after reloc: Permission denied
This is the preferred method to meet this policy requirement, but alternatively, you can disable SELinux.