Installing and configuring the Java Development environment under Linux (JDK/ECLIPSE/TOMCAT)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.