Where is javac after installing new openjdk?

Jacob picture Jacob · Jul 20, 2015 · Viewed 9.4k times · Source

An additional jdk was installed and configured on RHEL5.

yum install java-1.7.0-openjdk.x86_64
update-alternatives

It appeared to work: java -version points to desired 1.7.

However, javac -version still points to old 1.6.

sudo update-alternatives --config javac only lists one option. I could not find the additional javac.

How do I install or configure a 1.7 javac?

Answer

Tripp Kinetics picture Tripp Kinetics · Jul 20, 2015

That package contains only the jre. You need the java-1.7.0-openjdk-devel package.