Problem scenario
You have installed Java. But you cannot use the javac command. You get errors like this: "-bash: javac: command not found"
How do you install Java so you can compile programs on a RedHat Linux server?
Solution
Run this command: sudo yum -y install java-devel
If you want to do this on a Debian or Ubuntu Linux server, see this posting.