1 Installing the JDK
Here to install the official jdk1.7.79 for example, JDK7 Web page: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
1.1 Downloads jdk1.7.79
$ wget http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz
1.2 Decompression
$ TAR-ZXVF jdk-7u79-linux-x64.tar.gz
1.3 Installing to /USR/LIB/JVM
$ MKDIR/USR/LIB/JVM
$ MV JDK1.7.0_79/USR/LIB/JVM
$ CD/USR/LIB/JVM
$ mv jdk1.7.0_79 Jdk7
1.4 Configuring environment variables
$ gedit ~/.BASHRC
Add at the end of the open file
Export JAVA_HOME=/USR/LIB/JVM/JDK7
Export JRE_HOME=${JAVA_HOME}/JRE
Export Classpath=.:${java_home}/lib:${jre_home}/lib
Export Path=${java_home}/bin: $PATH
Save the exit and enter the following command to take effect
$ source ~/.BASHRC
1.5 Configuring the default JDK (since some Linux distributions already have default JDK, such as OPENJDK, to make the JDK version we just installed can be the default JDK version, configure as follows)
$ sudo update-alternatives--install/usr/bin/java Java/usr/lib/jvm/jdk7/bin/java 300
$ sudo update-alternatives--install/usr/bin/javac Javac/usr/lib/jvm/jdk7/bin/javac 300
Note: If the above two commands do not find a path problem, just restart the computer and repeat the above two lines of code is OK.
Execute the following code to see the current various JDK versions and configurations:
$ sudo update-alternatives--config java
1.6 Testing
$ java-version
Appears as follows: Installation succeeded
Java Version "1.7.0_79"
Java (TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot (TM) 64-bit Server VM (build 24.79-b02, Mixed mode)
2 Installing Idea
$ TAR-ZXVF ideaiu-14.1.5.tar.gz
$ CD idea-iu-141.2735.5/bin/
$ sh idea.sh
3 Setting up a desktop shortcut
$ Touch Ideaiu.desktop
$ VI Ideaiu.desktop
Join the content below
[Desktop Entry]
Encoding=utf-8
Name=ideaiu
Comment=ideaiu
exec=/home/wangxin/software/idea-iu/bin/idea.sh
Icon=/home/wangxin/software/idea-iu/bin/idea.png
Terminal=false
Startupnotify=true
Type=application
Categories=application;development;
Save to exit
Related articles:
Linux under Installation configuration JDK7 http://www.linuxidc.com/Linux/2013-11/93012.htm
Install JDK7 under ubuntu (with Clojure download) http://www.linuxidc.com/Linux/2012-10/71557.htm
Ubuntu 13.10 Installing the JDK, Eclipse for C + + (Troubleshooting global menu issues) http://www.linuxidc.com/Linux/2013-11/92305.htm
Linux VPS Configuration Build Java Server Environment (JDK+TOMCAT+MYSQL) http://www.linuxidc.com/Linux/2013-10/91578.htm
Installing JDK http://www.linuxidc.com/Linux/2013-09/90674.htm in Redhat
CentOS installation configuration JDK with Tomcat support JSP file parsing http://www.linuxidc.com/Linux/2013-09/89644.htm
Ubuntu 12.04 LTS installation Sun JDK7 http://www.linuxidc.com/Linux/2013-06/86343.htm
Ubuntu 13.04 installation IntelliJ idea http://www.linuxidc.com/Linux/2013-11/93014.htm
IntelliJ idea: Font beautification (anti-aliased) and font additions http://www.linuxidc.com/Linux/2013-11/92609.htm
IntelliJ idea 12 Creating a Web project graphic detailed tutorial http://www.linuxidc.com/Linux/2013-05/84213.htm
Using IntelliJ idea to develop the Android program graphics tutorial http://www.linuxidc.com/Linux/2013-03/81471.htm
IntelliJ Idea 12 Development haxe NME application Configuration Guide http://www.linuxidc.com/Linux/2013-01/77227.htm
IntelliJ idea runs the play Framework test mode http://www.linuxidc.com/Linux/2013-07/87694.htm
IntelliJ idea in detail : please click here
IntelliJ Idea's : please click here.
Install ideaIU14 and add desktop shortcuts under Ubuntu