You are missing Java or it's not configured properly to be in the path. Also, CentOS 6 is really old and I would recommend upgrading.
I have leased a vps in mochahost which operating system I recommend.
I would recommend latest stable version of Ubuntu to CentOS.
can someone help me install linux cent os 6
https://prnt.sc/gys8hg