javac don't found!!!
Hi, need compile java code, but when run
javac Example.java
the terminal shows:
bash: javac: command not found
use:
[root@localhost C01]# alternatives --config java
There are 3 programs which provide 'java'.
Selection Command
-----------------------------------------------
+ 1 java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.1.13-10.fc29.x86_64/bin/java)
* 2 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-11.fc29.x86_64/jre/bin/java)
3 java-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.1.13-11.rolling.fc29.x86_64/bin/java)
Enter to keep the current selection[+], or type selection number: 1
Just select 1, because the book I use say JDK 11, works "java" command but not "javac", please help!!!