Ubuntu 14.10 Configuration jdk + Java EE

Source: Internet
Author: User

This article is only a record for individuals installing JDK + Java EE under Ubuntu 14.10:

Installing the JDK

    1. Download jdk-7u75-linux-x64.tar.gz from Oracle's website
    2. Extract jdk-7u75-linux-x64.tar.gz (unzip to/usr/java)
      • sudo mkdir/usr/java
      • sudo tar-xzf jdk-7u75-linux-x64.tar.gz-c/usr/java/
    3. Configure environment variables: sudo/etc/profile, add at end of file
      • # Set JDK Environment
        Export java_home=/usr/java/jdk1.7.0_75
        Export JRE_HOME=/USR/JAVA/JDK1.7.0_75/JRE
        Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JRE _home/lib
        Export path= $PATH: $JAVA _home/bin: $JRE _home/bin
    4. Check if the JDK is installed successfully
      • Source/etc/profile (make the above configuration effective immediately)
      • Java-version

 Installing the Java EE

    1. Download eclipse-jee-luna-sr1a-linux-gtk-x86_64.tar.gz from Oracle's website
    2. Unzip to the current directory and get a folder called Eclipse: Tar-xzf eclipse-jee-luna-sr1a-linux-gtk-x86_64.tar.gz
    3. Move the Eclipse folder to/usr/j2ee-luna:sudo MV Eclipse/usr/j2ee-luna
    4. Create a desktop link: sudo vim/usr/share/applications/eclipse.desktop
      • [Desktop Entry]
        Name=j2ee-luna
        Comment=eclipse SDK
        Encoding=utf-8
        Exec=/usr/j2ee-luna/eclipse
        icon=/usr/j2ee-luna/icon.xpm
        Terminal=false
        Type=application
        Categories=gnome;development;ide;

 Done

Ubuntu 14.10 Configuration jdk + Java EE

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.