Install eclipse in Linux

Source: Internet
Author: User
Tags gtk

1. Download an object
JDK jdk-1_5_0_06-linux-i586-rpm.bin http://java.sun.com
Eclipse eclipse-SDK-3.1.2-linux-gtk.tar.gz http://www.eclipse.org

2. Install JDK

Chmod + x jdk-1_5_0_06-linux-i586-rpm.bin
/Jdk-1_5_0_06-linux-i586-rpm.bin

Set environment variables, edit/etc/profile, and add

Export J *** a_home =/usr/Java/jdk1.5.0 _ 06
Export Path = $ J *** a_home/bin: $ path
Classpath =.:/usr/Java/jdk1.5.0 _ 06/lib/tools. jar: $ classpath
Export classpath

3. Install eclipse

Tar-zxvf eclipse-SDK-3.1.2-linux-gtk.tar.gz

Then move it to the desired directory. Here it is/usr.
Write an execution script with the following content:

# Eclipse
#
Export J *** a_home =/usr/Java/jdk1.5.0 _ 06
Export classpath =/usr/Java/jdk1.5.0 _ 06/lib
/Usr/Eclipse/eclipse-VM/usr/Java/jdk1.5.0 _ 06/bin/Java-data ~ /Workspace &

CP eclipse. sh/usr/local/bin
Chmod 755/usr/local/bin/eclipse. Sh

Add eclipse. Sh to the desktop. Right-click on the desktop, select "create starter" from the pop-up menu, and enter/usr/local/bin/eclipse in "Eclipse" and "Command" in "name. SH and press "OK". The eclipse shortcut is displayed on the desktop. You can double-click this icon to start eclipse.

 

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.