I’ve followed instructions for installing the openJDK into Fedora from https://docs.fedoraproject.org/en-US/quick-docs/installing-java/ using the command
sudo dnf install java-latest-openjdk
After doing so the javac command is not in the path. I then ran the command to select java11.
sudo alternatives --config java
But the path still does not contain javac. I also closed and reopened the terminal to see if the path would update to no avail. Is there a document describing how to install and select the javac command? The command “java -version” does return version 11. However commands “javac -version” and “which javac” return command not found.
I did find javac in /usr/share/bash-completions/completions/javac by changing to the root directory and using the command:
sudo . -name javac -print
I’m assuming I need to add alternatives for javac?