1. Install Ubuntu 17.10 Virtual Machine 2. Installing the JDK
JDK Latest Version: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
This is jdk1.8.0_151 I installed here.
Su
Enter the root password
mkdir/usr/java8u151/
Copy the compressed package to this path
sudo tar zxvf jdk-8u151-linux-x64.tar.gz
The following directory is generated:
/usr/java8u151/jdk1.8.0_151
sudo vi ~/.BASHRC
Add the following content
# Added on 20171213 for install JDK
Export java_home=/usr/java8u151/jdk1.8.0_151
Export JRE_HOME=${JAVA_HOME}/JRE
Export Classpath=.:${java_home}/lib:${jre_home}/lib
Export Path=${java_home}/bin: $PATH
wq! Save exit
SOURCE ~/.BASHRC
Effective configuration
Echo $JAVA _home
Output /usr/java8u151/jdk1.8.0_151
Java-version
[Email protected]:/usr/java8u151/jdk1.8.0_151$ java-version
Java Version "1.8.0_151"
Java (TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot (TM) 64-bit Server VM (build 25.151-b12, Mixed mode)
The instructions are in effect successfully
3. Download IntelliJ idea
Address: http://www.jetbrains.com/idea/download/#section =linux
4. Activation after installation
1. Go to the website http://idea.lanyus.com/to obtain the registration code.
2. Fill in the following license server:
http://intellij.mandroid.cn/
http://idea.imsxm.com/
http://idea.iteblog.com/key.php
All of these methods can be verified
"Day01" "Environment" Java Development environment construction