First step to installing the JDK
1. Enter the USR directory
Cd/usr
2. Create the Java installation directory in the USR directory
mkdir Java
3. Copy the Jdk-6u24-linux-i586.bin to the Java directory
CP jdk-6u24-linux-i586.bin/usr/java/
4. Installing the JDK
Cd/usr/java
./jdk-6u24-linux-i586.bin
5. Installation completed for him to create a link to save the directory length
Ln-s/usr/java/jdk1.6.0_24//USR/JDK
6. Edit the configuration file
Vim/etc/profile
Add the following content:
Java_home=/usr/java/jdk
Classpath=.: $JAVA _home/jre/lib: $JAVA _home/lib/tools.jar
Path= $PATH: $JAVA _home/bin: $JAVA _home/jre/bin
Jre_home= $JAVA _home/jre
Export PATH java_home CLASSPATH jre_home
8. Restart the machine or source/etc/profile
sudo shutdown-r now
9. View installation Status
Java-version
Java Version "1.6.0_24"
Java (TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot (TM) Client VMs (build 19.1-b02, mixed mode, sharing)
Second step to install Tomcat
TAR-ZXVF apache-tomcat-6.0.29.tar.gz-c/opt (unzip to/OPT)
Ln-s/opt/apache-tomcat-6.0.29//opt/tomcat (build link file)
Start Tomcat
cd/opt/tomcat/bin/
./startup.sh (Note: Dots represent the current directory)
If you don't start, try
-I switch to root user and restart
./startup.sh
Test http://127.0.0.1:8080/
Step three install Eclipse
TAR-ZXVF eclipse-sdk-4.2-linux-gtk.tar.gz-c/opt (unzip to/usr/local directory and generate/usr/local/eclipse directory)
cd/opt/eclipse/
./eclipse (Note: Dots represent the current directory)
Installing and configuring the Java Development environment under Linux (JDK/ECLIPSE/TOMCAT)