Ubuntu 14.04 Java Development Environment build JDK and Intelij idea installation

Source: Internet
Author: User

1. Installation package

Jdk1.7.0_71:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

iidea-ic-139.225.3:http://www.jetbrains.com/idea/download/

2. Steps

1) Unzip the two installation files.

Tar xvzf jdk-7u71-linux-x64.tar.gz

Tar xvzf ideaic-14.0.1.tar.gz

2) Setting Environment variables

Assuming that the installation package is placed under/usr/local/, then

sudo vim/etc/environment

Add after Path:/usr/local/jdk1.7.0_71/bin, new environment variable classpath= ".; Usr/local/jdk1.7.0_71/lib "Java_home="/usr/local/jdk1.7.0_71 "

This is just setting environment variables, like windows, if you have already opened a cmd, then set the environment variable to the current CMD window is invalid, reopen a CMD window will reload environment variables. Linux is different, because its original intention is for multi-user design of the operating system, the information will often have global settings and the concept of user settings, and just set the/etc/environment is a global setting, so re-open a terminal window is not possible (restart the computer of course), Need to activate this setting for a terminal, use the command

Source/etc/environment

Set up to perform java-version in the current window, if the setting is successful, the following information is displayed:

Java Version "1.7.0_71"
Java (TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot (TM) 64-bit Server VM (build 24.71-b01, Mixed mode)

3) Install Intelij idea

Intelij idea inside the installation instructions, into the/bin directory execution shell script can be

/usr/local/idea-ic-139.225.3/bin/.idea.sh

If you are prompted without a Java environment, execute source/etc/environment

At this point, the installation is complete.

Ubuntu 14.04 Java Development Environment build JDK and Intelij idea installation

Related Article

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.