linux / arch jdk8 installation

Linux

  1. On linux, the downloaded jdk1.8. *****. Tar.gz decompression home directory ~ / java / or directory / opt / java / directory
  2. Edit ~ / .bashrc, introducing jdk directory stored
    terminal Input: Vim ~ / .bashrc
    ~ / .bashrc Input: export PATH = jdk / bin: $ PATH (tips: jdk jdk after decompression into an absolute path, such as / opt / java / jdk1.8. **)
  3. Input terminal, java -version, if the version was consistent jdk successful installation
    note: check the installation fails in ~ / .bashrc jdk path is correct; secondly if the version information is incorrect, carrying unload linux jdk

Guess you like

Origin www.cnblogs.com/luckyCoder/p/11698371.html