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:
- JAVA Command Error: A JNI error has occurred, please check your installation and try again [Solved]
- Linux compiles with javac error: bash: javac: command not found [How to Solve]
- [Solved] Err:12 http://security.ubuntu.com/ubuntu focal-updates/main amd64 openjdk-11-jre-headless amd64 11.0.11+9-0ubuntu2~20.04 404 Not Found [IP: 91.189.88.152 80]
- gradle –version Error: ERROR: JAVA_HOME is set to an invalid directory: /usr/local/opt/openjdk
- When Linux configures Java environment variables, they still report Java: command not found
- [Solved] E: dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the probl…
- Error: JAVA_HOME is not set [How to Solve]
- Can’t find PHP headers in /usr/include/php The php-devel package is required for use of this command.
- [Java] deepin solves the problem of picked up in JDK_JAVA_Options:-AWT. Usesystemaafontsettings=gasp
- Raspberry Pi3 Error: “Unable to determine hardware version. I see: Hardware : BCM2835”