Answers for "javac command not found in linux"

0

javac command not found in linux

#for fedora dnf 
sudo dnf install java-devel
sudo alternatives --config javac

There are 2 programs which provide 'javac'.

  Selection    Command
-----------------------------------------------
 + 1           /usr/local/java/jdk-17/bin/javac
*  2           java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.12.0.7-4.fc34.x86_64/bin/javac)

Enter to keep the current selection[+], or type selection number: +2
[amit@fedora java]$ javac -version
javac 11.0.12
[amit@fedora java]$
Posted by: Guest on September-22-2021

Code answers related to "javac command not found in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language