Export JAVA_HOME=/opt/JVM/jdk1.8.0 _241
Export JRE_HOME=${JAVA_HOME}/jre
Export the CLASSPATH=. : ${JAVA_HOME}/lib: ${JRE_HOME}/lib
The export PATH=${JAVA_HOME}/: $PATH
Save the exit after executing effective source for the documents/etc/profile
Execute Java, appeared v
The Command 'Java' not found, but can be installed with:
Sudo apt install default - the jre
Sudo apt install its - 11 - jre - headless
Sudo apt install its - 8 - jre - headless
O great god told how to solve?
CodePudding user response:
CodePudding user response:
CodePudding user response:
Export JAVA_HOME=/opt/JVM/jdk1.8.0 _241Export JRE_HOME=${JAVA_HOME}/jre
Export the CLASSPATH=. : ${JAVA_HOME}/lib: ${JRE_HOME}/lib
The export PATH=${JAVA_HOME}/: ${JAVA_HOME}/bin: $PATH
CodePudding user response:
I am also the same problem, after modify the profile to restart the virtual machineCodePudding user response:
Restart also, source/etc/profileCodePudding user response:
I am also the same problem, after modify the profile to restart the virtual machine