Ubuntu builds Java development environment "turn"

Source: Internet
Author: User
Tags java se

Transferred from: http://jingyan.baidu.com/article/86fae346b696633c49121a30.html

The Java development environment is a cross-platform programming language that can be developed on Windows, Linux, and other operating systems. Small series used to do Linux C development, recently because of the work, the need for the Java development environment under Ubuntu to build, so write this experience, and everyone share, reference. This experience is divided into four steps:

1) Download JDK

2) Download eclipse

3) Installing the JDK

4) Install Eclipse

Tools/Materials
    • Ubuntu
    • Eclipse
    • Jdk
One. Download JDK
    1. 1

      As can be seen from the graph, after the output command java-version, the discovery system does not build a Java development environment.

    2. 2

      To build the Java development environment, the first step is to install jdk!

      Web Links:

      Http://www.oracle.com/technetwork/java/javase/downloads/index.html

      Choose a version here.

      The mini-series Selects the Java SE 7u60, which you can choose according to your own needs.

      Click Download below the JDK to download

    3. 3

      After clicking on "Download", you will be taken to the page, where you should note the highlights:

      1) Select "Accept License Agreement"

      2) According to your own system and needs, choose the appropriate version. such as small, is Ubuntu system, and is 64-bit, so choose "LINUX X64"

    4. 4

      OK, download finished, you can see the small part of the system has been installed package

      END
Two. Download Eclipse2
    1. 1

      Download Eclipse's address: http://www.eclipse.org/downloads/

      , pay attention to the highlights:

      1) System Selection Linux

      2) Choose the version that is right for you, if you want to develop Java, choose the same as the small one, if you want to develop the C + +, select the C/D version

    2. 2

      Look, in the small system, all the necessary software has been downloaded.

      END

Three. Installing the JDK
  1. 1

    Enter the command to unzip:

    TAR-ZXVF XXXXXXX

  2. 2

    , Decompression complete

  3. 3

    To configure profile:

    Input command: Vim/etc/profile

  4. 4

    This step is one of the most serious!

    1) Add Java_home path:

    Export java_home=/xxx/xxxx/jdk1.7.0_60

    This directory is the directory you extracted after the JDK, such as small, the extracted directory is:

    /opt/software/java/jdk1.7.0_60

    So the path to the small series is:

    Export java_home=/opt/software/java/jdk_1.7.0_60

    2) Add JRE path

    The small part is:

    Export JRE_HOME=/OPT/SOFTWARE/JAVA/JDK_1.7.0_60/JRE

    3) Configure Classpath Path

    Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JRE _home/lib

    4) Configure path Path

    Export path= $PATH: $JAVA _home/bin: $JRE _home/bin

  5. 5

    OK, let the configuration take effect now

    Input command: Source/etc/profile

  6. 6

    Verify:

    Input command: java-version

    You can see the version number, the installation is successful!

    END
Four. Install Eclipse
    1. The same steps

      Extract:

      TAR-ZXVF XXXXXXX

    2. , Pressurized successfully

    3. Enter the directory you just unzipped, and then enter the command:

      ./eclipse

    4. As you can see, eclipse runs up. In this case, the Java development environment was built successfully

      steps to read

Ubuntu builds Java development environment "turn"

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.