Linux Lower installation IDEA And install the configuration JDK
The operating system is Ubuntu16.04
One 、 install IDEA
1.IDEA Download address :https://www.jetbrains.com/idea/download/#section=linux
There are three kinds of downloads , The top two are self brought jdk Of , It doesn’t come with you here jdk Version of
After downloading, you can find the downloaded file in the corresponding folder
2. Run unzip to
tar -zxvf ideaIU-2019.1.3-no-jbr.tar.gz
After decompression ls You can see
You can also move the extracted file to a specified directory
mv file name The target path
3. Registration code acquisition :http://idea.lanyus.com/
Two 、 Installation configuration JDK
1.jdk Download address :https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
download jdk You need to accept the license agreement first , Then click on the corresponding jdk file , Will jump to login Oracle account number , If not, just register one .
After login, you can download the corresponding jdk The file
After downloading, you can find the downloaded file in the corresponding folder
2. Run unzip to
tar -zxvf jdk-8u211-linux-x64.tar.gz
After decompression ls You can see
You can also move the extracted file to a specified directory
mv file name The target path
3. Modify global profile
gedit /etc/profile
Add the following information to the configuration file :
#jdk8
export JAVA_HOME=/opt/Java/jdk1.8.0_211
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=.:${JAVA_HOME}/bin:$PATH
Be careful :JAVA_HOME It’s after you unzip it jdk The catalog of
Refresh profile :
source /etc/profile
Check if the installation is successful :