Build a java development environment in Centos

Source: Internet
Author: User
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.


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.