1.
Install the eclipse Development Environment JDK/JRE
Eclipse runs on a Java Virtual Machine. Therefore, you must install the Java environment before you can perform development and testing. You can download JDK
Or JRE. JRE (Java Runtime Environment) is the runtime environment, JDK (Java Development
Is a development environment. The JDK development environment includes the JRE runtime environment. Therefore, if you only use eclipse to develop PHP programs, JDK is not required. You can use JRE.
JDK is required for Java development.
After JDK is installed in Ubuntu, you no longer need to install JRE. For example, if JRE is installed, then JDK will be installed again. Open the Ubuntu terminal and run the following command:
Sudo apt-Get install sun-java6-jre or sudo apt-Get install sun-java6-jdk
Or use the Ubuntu New Software Package Manager, search for JDK find sun-java6-jdk, and select refresh-tag for upgrade-application. Install JDK.
2. Install eclipse PDT
The downloaded eclipse PDT
Compressed package (All-in-One
Linux x86/GTK 2 32-bit
) Decompress the package to an appropriate directory. As long as the JDK/JRE environment is set up, it doesn't matter where the eclipse decompression folder is put. Run the following command to decompress the terminal:
Sudo tar-zxvf '/home/farlee/download/eclipse-php-galileo-SR2-linux-gtk.tar.gz'
Decompress the package to the/home/farlee directory. After extracting the package from eclipse, you can use the package without installation such as./configure # make install.
3. Add the eclipse application icon
Add the eclipse shortcut icon to the programming menu of the application in the upper left corner of the Ubuntu Desktop:
sudo gedit /usr/share/applications/eclipse.desktop
Add the following code to the file opened by gedit:
[Desktop entry] encoding = UTF-8Name = eclipsecomment = eclipse ideexec =/home/farlee/Eclipse/eclipse // change to the directory path for installing eclipse executable files by yourself. Icon =/home/farlee/ eclipse/icon. XPM // change the eclipse icon path to terminal = falsestartupnotify = TrueType = applicationcategories = application; development; // indicates the application program.
Save and exit. Right-click the icon to add eclipse to the desktop starter.