How to install jdk, tomcat, and linuxjdktomcat in linux
Jdk: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jdk-6u21-oth-JPR
I. Installation
Create the installation directory, create the installation path under/usr/java, and obtain the file to this path:
# Mkdir/usr/java
1. jdk-6u11-linux-i586.bin this is a self-extracting file, installed on linux as follows:
# Chmod 755 jdk-6u11-linux-i586.bin
#./Jdk-6u11-linux-i586.bin (note that this step must be in the directory where the jdk-6u11-linux-i586.bin is located)
Ii. Configuration
# Vi/etc/profile
Add the following content to it:
Export JAVA_HOME =/usr/java/jdk1.6.0 _ 27
Export JAVA_BIN =/usr/java/jdk1.6.0 _ 27/bin
Export PATH = $ PATH: $ JAVA_HOME/bin
Export CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export JAVA_HOME JAVA_BIN PATH CLASSPATH
To make the/etc/profile file take effect immediately after modification, run the following command:
#./Etc/profile
Tomcat: http://tomcat.apache.org/download-70.cgi