Today, I tried to build a java Development Environment under Linux, and I will summarize the specific steps.
1. JDK Installation
Run the following command to install JDK (first create the/opt/java directory)
Tar-xvf jdk-7u9-linux-i586.tar.gz-C/opt/java
Ln-s/opt/java/jdk1.7.0 _ 09/opt/java/jdk to create a link
Vi/etc/frofile
Export JAVA_HOME =/opt/java/jdk
Exprot PATH = $ JAVA_HOME/bin: $ PATH
It is equivalent to Resetting PATH = JAVA_HOME/bin + PATH
After configuration, use the command source/etc/profile.
Run the java-version command to test whether jdk is successfully installed.
2. tomcat installation
Unzip and install
Tar-xvf apache-tomcat-6.0.10.tar.gz-C/opt/tomcat/
Ln-s/opt/tomcat/apache-tomcat-6.0.10/opt/tomcat/tomcat6.0 create a link
Then cd/opt/tomcat/tomcat6.0/bin
Run./startup. sh
Open the browser and test it. Enter http: localhost: 8080 to see if there is a page for the cat. If so, the installation is successful.
3. Install eclipse
Unzipping, gunzip eclipse-java-juno-SR2-linux-gtk.tar.gz
Install tar-xvf eclipse-java-juno-SR2-linux-gtk.tar-C/opt
Then go to the graphical interface to enter the/opt/eclipse directory and run eclipse to open the eclipse interface.