The first thing to configure is jdk:http://www.cnblogs.com/liunanjava/p/4296540.html
First, download
- Eclipse:http://www.eclipse.org/downloads/
Second, installation configuration2.1. Decompression
2.2. CP to a folder
Move files or copy
sudo mv/home/ln0491/downloads/eclipse/ /usr/local/
If the CP command is used for replication
sudo cp-r/home/ln0491/downloads/eclipse/ /usr/local/
2.3. Start Eclipse
User/local/eclipse/eclipse
2.4. Configure Environment variables
VI/HOME/LN0491/.BASHRC//Add path in PATHC
Export java_home=/usr/local/develoment/jdk1.8.0_31/export CLASSPATH=.: $JAVA _home/lib/dt.jar: $JAVA _home/ lib/tools.jar export PATH= $PATH: $JAVA _home/bin: $JAVA _home/jre/bin:/usr/local/eclipse/
2.5. Create a shortcut
/usr/share/applications/Eclipse.desktop writes the following [Desktop entry]name=eclipsecomment=Eclipse Sdkencoding=utf-8Exec=/usr/local/eclipse/eclipseicon=/usr/local/eclipse/ Icon.xpmterminal=falseType=application After completion can be in the/usr/share/applications/directory See the Eclipse icon.
Then make the/usr/share/applications/directory from the graphical interface, copy the Eclipse icon to the desktop, or drag it to the left launcher
Java starts from scratch 21 (configuring Eclipse under Ubuntu)