Today, I tried to build a java development environment under Linux, and I will summarize the specific steps. 1. run the following command to install JDK: (create/opt/java ))tar-xvfjdk-7u9-linux-i586.tar.gz-C/opt/java1- s/opt/java/jdk1.7.0 _ 09/opt/java/JDK first) one link vi/etc/frofile sets the environment variable expor
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.