6626070
2997924

PL02, Syntax

Back to the previous pagepage management
List of posts to read before reading this article


Contents


Installation

Downloaddownload manual

$ mkdir /usr/local/java
$ cd /usr/local/java
$ tar -zxvf jdk-11.0.7_linux-x64_bin.tar.gz
$ vim /etc/profile

/etc/profile

export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")
$ update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk-11.0.7/bin/java" 1;
$ update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk-11.0.7/bin/javac" 1;
$ update-alternatives --set java /usr/local/java/jdk-11.0.7/bin/java;
$ update-alternatives --set javac /usr/local/java/jdk-11.0.7/bin/javac;
$ . /etc/profile
$ java -version





title2





title3





List of posts followed by this article


Reference


OUTPUT
<details markdown="1">
<summary class='jb-small' style="color:red">OUTPUT</summary>
<hr class='division3_1'>
<hr class='division3_1'>
</details>