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