• 周六. 10 月 12th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

(1) Cracking and installing idea and JDK under Linux

King Wang

1 月 3, 2022

                                      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 :

 

 

 

发表回复