If you want to run a java program on your bluehost server you have a few options.
Option 1. Get dedicated hosting, which probably costs way more, then you can get sudo access and you can sudo yum install java
.
If you have dedicated bluehost hosting then:
Login to your Bluehost Control Panel
Click the Server quicklink
Scroll down to the Access Management section.
Click the Primary User tab.
Enable sudo
Option 2. Download java jdk in your local sandbox and install locally.
a. From bluehost terminal run command `uname -m` mine says 64 bit.
b. Go download the 64 bit linux JDK .tar.gz
c. untar it and install it to somewhere local.
d. Add an alias so that javac and java are reachable from terminal.
Option 3. Make your own server or virtual machine.