Install eclipse under Ubuntu

Source: Internet
Author: User
Tags gtk

The version I'm using is up to date.
Ubuntu 14.04

Steps:

1, install the configuration Java environment, because Eclipse uses Java so needs the Java Runtime Environment

download installation jdk
$sudo apt-get Install OPENJDK-6-JDK

in the current system $sudo Update-alternatives--display java
Install JVM path
$sudo update-alternative s--install/usr/bin/java Java/usr/lib/jvm/java-1.6.0-jdk/bin/java
Replace the system JVM
$sudo update-alternatives–config java< /strong>
Configure environment variables (  This can choose not to do)
$vim/etc/profile
Add the following lines:    
Export JAVA_HOME=/USR/LIB/JVM/JAVA-1.6.0-OPENJDK


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

Run $source/etc/profile make the configuration effective immediately

Verify that the configuration is complete
$echo $JAVA _home
$java-version

2. Download eclipse

Download the Linux version of Eclipse IDE for Java EE developers from official website http://www.eclipse.org/downloads/

Eclipse-sdk-3.7.2-linux-gtk.tar.gz

3, unzip
$ tar-zxvf Eclipse-sdk-3.7.2-linux-gtk.tar.gz
Extract is an Eclipse folder
4, move the folder to the installation directory
$ sudo mv Eclipse/ usr/local/
5, start Eclipse
$/usr/local/eclipse/eclipse
6, create a desktop link
$ sudo su
# vim/usr/share/applications/eclipse.desktop

Writes the following
[desktop Entry]
Name=eclipse
Comment=eclipse SDK
Encoding=utf-8
Exec=/usr/local/eclipse/eclipse
icon=/usr/local/eclipse/icon.xpm
Terminal=false
type=application
Categories=application;development;
You can see the Eclipse icon under application-programming when you're done.
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.