CodePudding user response:
When input Java, this command needs in $PATH, namely the/root/Java/JDK.../bin/need in $PATH, can enter the commandThe export PATH=/root/Java/JDK.../bin: $PATH
Or add the above command to ~/. In bashrc (fairly and autoexec. Bat)
CodePudding user response:
Jdk1.8 can use yum to install its, path automaticallyCodePudding user response:
Dizzy, how is the format of the Windows shell variables? % % variable is a Windows, Linux with $variable or ${variable}Export CLASSPATH=. : ${JAVA_HOME}/lib/dt. The jar: ${JAVA_HOME}/lib/tools. The jar
The export PATH=$PATH: ${JAVA_HOME}/bin
CodePudding user response: