If you, like us, deal with the older versions of JDK on the newer versions of Linux from time to time, you may get this message when running JDK:
"libXp.so.6: cannot open shared object file: No such file or directory"
The way to fix it is to run two following commands:
sudo yum install libXp
sudo yum install xorg-x11-deprecated-libs
Hope this helps.
Regards,
Slava Imeshev