linux / arch jdk8 installation
Others
2019-10-18 15:36:07
views: null
Linux
- On linux, the downloaded jdk1.8. *****. Tar.gz decompression home directory ~ / java / or directory / opt / java / directory
- 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. **)
- 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
Origin www.cnblogs.com/luckyCoder/p/11698371.html