Install and uninstall Eclipse in Linux
1. download the software package
Download the Eclipse SDK. Http://www.eclipse.org/downloads)
Download JRE (Java Runtime Environment ). Http://java.sun.com/javase/downloads/index.jsp)
Ii. Install JRE
Download the file jre-6-linux-i586-rpm.bin to a temporary folder, for example, I put it in ~ /Downloads directory.
Install JRE:
Switch to Super User Mode:
Www.bkjia.com @ bkjia: sudo-s
Go to the downloads directory:
Walter:/home/songyadong # cd downloads
If the downloaded file is not executable by default, change the permission to executable:
Walter:/home/songyadong/downloads # chmod a + x jre-6-linux-i586-rpm.bin
Start the installation process:
Walter:/home/songyadong/downloads #./jre-6-linux-i586-rpm.bin
The binary license agreement is displayed, and the next page is displayed by control. After reading the license agreement, enter yes to continue the installation. This will decompress, generate the jre-6-linux-i586.rpm, and then the rpm package will run the installation automatically. (In some articles, the rpm package needs to be manually installed when decompressed to generate an rpm package, but the rpm package is automatically installed when I run the binfile. If rpm is not automatically installed, run the command rpm-ivh jre-6-linux-i586.rpm to install it ). After JRE is installed in the/usr/java/jre1.6.0 directory.
Set environment variables so that Linux can find JRE:
Walter:/home/songyadong/downloads # vi/etc/profile
Add the following content to the configuration file:
# <Add by syd on 2007.3.6>
PATH = $ PATH:/usr/java/jre1.6.0/bin
Export JAVA_HOME =/usr/java/jre1.6.0
Export CLASSPATH = $ JAVA_HOME/lib :.
Add it to any location of the file.
After saving the disk, test whether Java is successfully installed:
Www.bkjia.com @ bkjia: ~> Java-version
Display:
Java version "1.6.0"
Java (TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot (TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
3. Install the Eclipse SDK
Copy a file:
Go to the directory where the downloaded Eclipse sdkfile eclipse-sdk-3.2.2-linux-gtk.tar.gz is stored:
Www.bkjia.com @ bkjia: ~> Cd downloads
Switch to Super User Mode:
Www.bkjia.com @ bkjia :~ /Downloads> su
Copy the eclipse-sdk-3.2.2-linux-gtk.tar.gz file to the/usr/local directory:
Walter:/home/songyadong/downloads # cp eclipse-SDK-3.2.2-linux-gtk.tar.gz/usr/local
Decompress:
Go to the/usr/local directory:
Walter:/home/songyadong/downloads # cd/usr/local
Decompress eclipse-sdk-3.2.2-linux-gtk.tar.gz:
Walter:/usr/local # tar xzvf eclipse-SDK-3.2.2-linux-gtk.tar.gz
The eclipse directory will be generated under/usr/local.
Try to run eclipse:
Exit Super User:
Walter:/usr/local/eclipse # exit
Go to the eclipse directory:
Www.bkjia.com @ bkjia :~ /Downloads> cd/usr/local/eclipse
Run eclipse:
Www.bkjia.com @ bkjia:/usr/local/eclipse>./eclipse
If there is no problem, eclipse runs successfully.
4. Install CDT
Decompress CDT
Directory of the org.eclipse.cdt-3.1.2-linux.x86.tar.gz file:
Www.bkjia.com @ bkjia: ~> Cd downloads
Transfer to Super User Mode:
Www.bkjia.com @ bkjia :~ /Downloads> su
Change the owner and group of the file org.eclipse.cdt-3.1.2-linux.x86.tar.gz to root:
Walter:/home/songyadong/downloads # chown root: root org.eclipse.cdt-3.1.2-linux.x86.tar.gz
Decompress org.eclipse.cdt-3.1.2-linux.x86.tar.gz:
Walter:/home/songyadong/downloads # tar xzvf org.eclipse.cdt-3.1.2-linux.x86.tar.gz
The package is decompressed to the eclipse directory of the current directory.
Install CDT plugin:
Walter:/home/songyadong/downloads # cp-r eclipse/plugins/./usr/local/eclipse/plugins
Start Eclipse and you can see that C and C ++ projects are supported more.
5. Cleanup
The rpm package jre-6-linux-i586-rpm.bin that is automatically extracted from the jre-6-linux-i586.rpm file when JRE is installed can also be removed to save disk space.
The eclipse-sdk-3.2.2-linux-gtk.tar.gz file copied to the/usr/localdirectory during Eclipse SDK installation can be deleted to save disk space.
In the directory where the downloaded files are stored ~ /Downloadsextract the eclipse directory from org.eclipse.cdt-3.1.2-linux.x86.tar.gz to save disk space.
Exit the superuser mode.
Uninstall Eclipse: yum remove eclipse * (fully uninstall) Fedora. In Ubuntu, apt-get remove eclipse *