Home > Backend Development > PHP Tutorial > Ubuntu 12.04 装配eclipse-php

Ubuntu 12.04 装配eclipse-php

WBOY
Release: 2016-06-13 11:16:13
Original
845 people have browsed it

Ubuntu 12.04 安装eclipse-php

1, 安装openjdk, Ubuntu 12.04默认jre为 openjdk-6-jre

??? sudo apt-get install default-jre

2,下载Zend Eclipse PDT , 下载链接: http://www.zend.com/en/community/pdt/downloads

3) 放到/opt文件夹里,并修改所有者为root和访问权限为可写,-R为所有的子项.

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

4) 使用touch命令新建一个eclipse-php文件,使用nano编辑器编辑

sudo touch /usr/bin/eclipse-phpsudo chmod 755 /usr/bin/eclipse-phpsudo nano /usr/bin/eclipse-php
Copy after login

复制下面内容到eclipse-php文件

#!/bin/sh#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"export ECLIPSE_HOME="/opt/eclipse-php"$ECLIPSE_HOME/eclipse-php $*
Copy after login

保存文件快捷键 (^O = Ctrl+o) ,和退出快捷键nano (^X = Ctrl+x)

5) 创建 gnome 菜单项

sudo nano /usr/share/applications/eclipse-php.desktop
Copy after login

复制下面内容到eclipse-php.desktop文件,Icon那项如果不存在可以去eclipse找到该图标复制到指定地址

[Desktop Entry]Encoding=UTF-8Name=EclipseComment=Eclipse IDEExec=eclipse-phpIcon=/opt/eclipse-php/icon.xpmTerminal=falseType=ApplicationCategories=GNOME;Application;Development;StartupNotify=true
Copy after login

保存和退出 nano


6) 首次加载eclipse-php

/opt/eclipse-php/eclipse-php -clean &
Copy after login
7) 如果出现以下提示,请点击Ok忽略:
?
8)出现以下问题点No忽略。
?
?
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template