Ubuntu15.04 Configure Java environment variables and install IntelliJ Idea__java

Source: Internet
Author: User

I. Configuration of JAVA environment variables
<1>. Download JDK
Download Address: (Please select the version number that suits your model)
Http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk7-downloads-1880260.html
Note: To choose accept License Agreement, or not download.
<2> Decompression Installation
We install the JDK to this path:/USR/LIB/JVM.
If this directory is not found, a new directory is created.
Cd/usr/lib
sudo mkdir JVM
After we have created it, we will extract the JDK file/USR/LIB/JVM in the directory of the zipped package we just downloaded.
sudo tar-zxvf./jdk-8u45-linux-x64.tar.gz-c/USR/LIB/JVM
<3> Configure Environment variables
Vim/etc/profile
At the end of the open file, add:

Then enter the following command to make it effective:
Source/etc/profile
<4> Testing
Open the terminal and enter:
Java-version
Display results as:
Done!!!
two. Install IntelliJ idea
<1> Download IntelliJ Idea
Download Address: http://www.jetbrains.com/idea/download/
Decompression after download: TAR-ZXVF ideaic-14.1.3.tar.gz
Then run the software in the Unpacked Bin directory using the command sh idea.sh.
OK, now you can write a Java program!!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.