Linux Run javac Error: javac: command not found

bash: javac: command not found

java version 1.8

[root@localhost home]# java -version
openjdk version "1.8.0_232"

Directly during installation

yum install java

After installation, run javac and report an error. It is found that there are fewer packages, so install the corresponding package again

yum install java-1.8.0-openjdk-devel.x86_64

Similar Posts: