Home > Back-end >  Ubuntu 18.04.3 JDK installation - 8 u241 - Linux - x64. Tar. Gz after the completion of the hint Com
Ubuntu 18.04.3 JDK installation - 8 u241 - Linux - x64. Tar. Gz after the completion of the hint Com

Time:10-10

From the official website to download the JDK 8 u241 - Linux - x64. Tar. Gz this version, new the JVM under opt path, will file into the JVM, and in the/etc/profile has been added to
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 _241

Export 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 machine

CodePudding user response:

Restart also, source/etc/profile

CodePudding user response:

I am also the same problem, after modify the profile to restart the virtual machine
  • Related