Home > Back-end >  Linux related, small white for help
Linux related, small white for help

Time:10-07

Freshman freshmen, computer professional ali cloud Ecs subminiature game server, the server Java installation problem

CodePudding user response:

When input Java, this command needs in $PATH, namely the/root/Java/JDK.../bin/need in $PATH, can enter the command

The 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 automatically

CodePudding 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:

reference 4 floor qybao 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

+ 1
  • Related