Install eclipse under Ubuntu

Source: Internet
Author: User
Tags gtk

I. Installation of the Eclipse installation environment JDK

1. Download JDK

Download JDK8 from official website

Jdk-8u5-linux-x64.tar.gz

2. Decompression
$ TAR-ZXVF jdk-8u5-linux-x64.tar.gz
Extract it Out is a jdk1.8.0_05 folder
3. Move the folder to the installation directory
$ sudo mv jdk1.8.0_05/usr/local/

4. Configure environment variables, change/etc/profile file

sudo gedit/etc/profile

Add the following lines at the end of the file:

Export java_home=/usr/local/jdk1.8.0_05
Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH
Export classpath= $CLASSPATH:.: $JAVA _home/lib: $JAVA _home/jre/lib

5. Change the default configuration option and execute the following command sequentially

sudo update-alternatives--install/usr/bin/java Java/usr/local/jdk1.8.0_05/bin/java 300

sudo update-alternatives--install/usr/bin/javac Javac/usr/local/jdk1.8.0_05/bin/javac 300

I add Next:

sudo update-alternatives--install/usr/bin/jar Jar/usr/local/jdk1.8.0_05/bin/jar 300
sudo update-alternatives--install/usr/bin/javah javah/usr/local/jdk1.8.0_05/bin/javah 300

sudo update-alternatives--install/usr/bin/javap JAVAP/USR/LOCAL/JDK1.8.0_05/BIN/JAVAP 300

Ii. installation of Eclipse

1. 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

2. Decompression
$ TAR-ZXVF eclipse-sdk-3.7.2-linux-gtk.tar.gz
Extract it Out is an Eclipse folder

3. Move the folder to the installation directory
$ sudo mv eclipse/usr/local/

4. Start Eclipse
$/usr/local/eclipse/eclipse

At this point, eclipse can start successfully and install successfully.

Third, create a desktop link

Ubuntu 12.04 uses the Unity interface, which has one more launcher bar on the left side of the desktop. We can use the software we use in the launcher bar to put an icon, to enable fast start. Each icon in the Launcher bar actually corresponds to a file in the /usr/share/applications directory.

In order to create a launch bar icon for Eclipse, We can create the file eclipse.desktopin the/usr/share/applications directory (the filename can be arbitrary, but the filename suffix must be . Desktop)

Enter the command:

$ sudo su

# Gedit/usr/share/applications/eclipse.desktop

Write the following content
[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;

Then we search for the keyword "eclipse" on the dash homepage to see the Eclipse icon

You can lock the eclipse icon on the sidebar to avoid having to search the dash home page each time you execute eclipse. When the Eclipse app executes, right-click the Eclipse icon on the sidebar and select " Lock to Launcher " in the pop-up menu to lock it.

Reference:

Ubuntu 14.04 Install Java8 http://my.oschina.net/u/1407116/blog/227084

Install Eclipse http://my.oschina.net/u/1407116/blog/227087 under Ubuntu14.04

Add a Quick Launch entry for Eclipse in Ubuntu 12.04 http://www.cnblogs.com/eastson/archive/2012/06/08/2541266.html

Install eclipse under Ubuntu

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.