Http://www.cnblogs.com/Bonker/p/3584707.html
The above link has been described in detail, mainly to add a little, how to install the configuration Java JDK
First download Java installation package from official website: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Unzip with the following command:
tar -xzvf jdk-8u31-linux-x64.tar.gz
Will get the jdk1.8.0_31 folder , it is recommended to put it in a relatively stable path, such as:
sudo mv jdk1.8.0_31/ /usr/local
You need to configure the following three environment variables:
- The
- PATH environment variable. The function is to specify the command search path, in java c/java/javadoc Wait, after setting the path variable, you can execute Javac/java tool .
- CLASSPATH Environment Variables . The role is to specify the class search path , to use the already written classes, the premise is to be able to find them, the JVM is through the classpth to find the class. We need to set the Dt.jar and Tools.jar in the Lib subdirectory of the JDK installation directory to classpath, of course, the current directory "." must also be added to the variable.
- Java_home environment variables. It points to the JDK 's installation directory, and software such as Eclipse/netbeans/tomcat finds and uses the installed JDK by searching for java_home variables.
You can configure environment variables by adding the following at the end of the/etc/profile file:
Export java_home=/usr/local/jdk1.8.0_31
Export path= $JAVA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Restart the computer to take effect.
Python+eclipse+pydev Environment Construction