Fedora javac command prompt [javac: Command not found...], fedorajavac
[Joy @ localhost ~] $ Java-version
Openjdk version "1.8.0 _ 91"
OpenJDK Runtime Environment (build 1.8.0 _ 91-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
[Root @ localhost joy] # javac Hello. java
Bash: javac: Command not found...
Similar commands: 'java'
Javac prompt: The command is not found. Jdk is not installed. You only need to follow the steps below to install it! So Easy!
[Root @ localhost joy] # dnf install java
------ Wait... enter Y to install ...--------------
[Root @ localhost joy] # java
---- The usage of java will be prompted.
[Root @ localhost joy] # dnf install java * jdk * devel
[Root @ localhost joy] # javac
---- The javac usage will be prompted, indicating that the operation is successful.
Result:
[Root @ localhost gitdemo. git] # javac Hello. java
[Root @ localhost gitdemo. git] # java Hello
Hello World!
Reference: http://tieba.baidu.com/p/3877291318