Ubuntu12.04 assemble eclipse-php

Source: Internet
Author: User
Tags download zend touch command
Ubuntu12.04 install eclipse-php1, install openjdk, Ubuntu12.04 default jre for openjdk-6-jre ??? Sudoapt-getinstalldefault-jre2, download ZendEclipsePDT Ubuntu 12.04 install eclipse-php

1, install openjdk, Ubuntu 12.04 default jre for 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 in the/opt folder, and change the owner to root and the access permission to writable, and-R to all the sub-items.

mv eclipse-php /opt/sudo chown -R root:root /opt/eclipse-phpsudo chmod -R +r /opt/eclipse-php

4) use the touch command to create an eclipse-php file and use the nano editor to edit it.

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 the file shortcut key (^ O = Ctrl + o) and exit the shortcut key nano (^ X = Ctrl + x)

5) create a gnome menu item

sudo nano /usr/share/applications/eclipse-php.desktop

Copy the following content to the eclipse-php.desktop file, Icon that can be found in eclipse if it does not exist copy 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) load eclipse-php for the first time

/opt/eclipse-php/eclipse-php -clean &
7) if the following prompt appears, click OK to ignore :? 8) the following problem occurs: No ignore .??

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.