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.