Ubuntu the simplest command line way to install java of is recommended

  • 2020-05-13 04:20:44
  • OfStack

Because you often have to install java, you are annoyed by it!

Divided into two parts:

1.

sudo apt-get install openjdk-7-jdk

2.

sudo vim /etc/environment

Then copy the following:

JAVA_HOME="/usr/lib/jvm/java-1.7.0-openjdk-amd64 > "

3.source /etc/environment


Related articles: