I used the alternatives --config command to select the more recent version of Java that matched my javac or java-devel.

[~]$ sudo alternatives --config java

There are 3 programs which provide...