Ubuntu 12.04 Installation eclipse-php
1, install OPENJDK, Ubuntu 12.04 default JRE is Openjdk-6-jre
??? sudo apt-get install Default-jre
2, download Zend Eclipse PDT, download link: http://www.zend.com/en/community/pdt/downloads
3) put it into the/opt folder and modify the owner for root and access rights to writable,-R for all subkeys.
MV Eclipse-php/opt/sudo chown-r Root:root/opt/eclipse-phpsudo chmod-r +r/opt/eclipse-php
4) Create a new eclipse-php file using the Touch command and edit it using the Nano editor
sudo touch/usr/bin/eclipse-phpsudo chmod 755/usr/bin/eclipse-phpsudo nano/usr/bin/eclipse-php
Copy the following content to the eclipse-php file
#!/bin/sh#export mozilla_five_home= "/usr/lib/mozilla/" Export eclipse_home= "/opt/eclipse-php" $ECLIPSE _home/ eclipse-php $*
Save File Shortcut key (^o = Ctrl+o), and exit shortcut nano (^x = ctrl+x)
5) Create Gnome menu items
sudo nano/usr/share/applications/eclipse-php.desktop
Copy the following to the Eclipse-php.desktop file, icon if it does not exist can go to eclipse to find the icon copied to the specified address
[Desktop Entry] Encoding=utf-8name=eclipsecomment=eclipse ideexec=eclipse-phpicon=/opt/eclipse-php/icon.xpmterminal=falsetype= Applicationcategories=gnome; Application;development; Startupnotify=true
Save and Exit Nano
6) First Load eclipse-php
/opt/eclipse-php/eclipse-php-clean &
7) If the following prompt appears, click OK to ignore:
?
8) The following problem occurs when no is ignored.
?
?