deepin install Java environment

I just installed deepin 15.5 to experience it recently. In order to facilitate Java development, you need to configure environment variables. I am configuring Java8

Specific steps

Open a terminal and enter the following commands in sequence

sudo apt-get install python-software-properties
sudo apt-get update
sudo apt install software-properties-common
sudo apt-get update
sudo add-apt-repository ppa:webupd8team/java

Success, next update

sudo apt-get update

Finally install, follow the prompts

sudo apt-get install oracle-java8-installer

After success, you can view it with the following command

Java -version

Just like this, the installation is successfulanger

wang@wang-PC:~$ java -version
Picked up _JAVA_OPTIONS:   -Dawt.useSystemAAFontSettings=gasp
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
wang@wang-PC: ~ $


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324724909&siteId=291194637