First download a eclipse,http://www.eclipse.org/downloads/on the website
I downloaded the eclipse-java-luna-sr1-linux-gtk-x86_64.tar.gz.
Unzip the file to the appropriate directory, I unzipped in the/OPT directory
#tar-ZXVF eclipse-java-luna-sr1-linux-gtk-x86_64.tar.gz-c/opt
Where-c switches the destination address to/OPT, the destination address can be freely transformed, but recommended for/OPT
The installation is complete and the following configuration enables the use of eclipse in the shell environment to open the software
3.1 Modifying/opt/eclipse permissions
#chmod-R +r/opt/eclipse
3.2 Create an eclipse file under/usr/bin and Modify permissions
#touch/usr/bin/eclipse
#chmod 755/usr/bin/eclipse
3.3 Adding scripts launched from the shell
#vi/usr/bin/eclipse
Insert the following lines and save the exit:
#!/bin/sh
Export Eclipse_home= "/opt/eclipse"
$ECLIPSE _home/eclipse $*
3.4 Start eclipse by entering Eclipse command at terminal
Add a desktop shortcut
In the blank space of the desktop, click the right mouse button, pop up a dialog box, select "Create Launcher" (Chinese is "new launcher"), in the "Create Launcher" (Chinese "Creating Shortcut") dialog box select Application (Chinese "application"), Input name: Eclipse, in command (Chinese "command") to find the Eclipse launcher (for example, my is:/opt/eclipse/eclipse), double-click on the upper left side of the icon will pop up a selection icon of the dialog box, find the directory to install Eclipse, Locate the icon.xpm in the directory, select Open (OK), and set it up like this:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4C/05/wKioL1Q2k9GycHgdAADS2sq6mro471.jpg "title=" Screenshot-create launcher.png "alt=" Wkiol1q2k9gychgdaads2sq6mro471.jpg "/>
At this point, there are three ways to open Eclipse (1) desktop shortcuts, 2) command line terminal; 3) Explorer (Eclipse double-click icon in/opt/eclipse directory)
This article is from the "Learning" blog, so be sure to keep this source http://learnwithme.blog.51cto.com/7148047/1561913
CentOS6.5 Installing eclipse