现在的位置: 首页 > 综合 > 正文

Eclipse3.2.0安装JSEclipse1.5.5插件

2014年02月25日 ⁄ 综合 ⁄ 共 1472字 ⁄ 字号 评论关闭

使用Eclipse进行WEB开发时,JSEclipse插件不能少,它是一款不错的JavaScript编辑器,可以语法高亮、代码提示等很好用的功能。但是不管是我原来在Windows XP 下安装还是现在在 Ubuntu 下安装,都费了不少劲---因为我使用的是Links的方式安装的,把下载下来的JSEclipse1.5.5解压缩,然后再把里面features目录下plugins两个目录下的文件解压,然后把它们复制到一个专门的目录,我放在了 /opt/eclipse_plugins/jseclipse_1.5.5目录下,别忘了JSEclipse1.5.5解压出来的目录是不带eclipse目录的,所以需要在/opt/eclipse_plugins/jseclipse_1.5.5目录下再建一个eclipse的目录,再把刚才解压的文件复制到这里来,它们包括这些目录 documentation 目录、features 目录、License 目录、plugins 目录、Install.txt 文件、Readme.txt 文件、site.xml 文件,然后再eclipse安装目录下新建一个links的目录,创建一个叫 jseclipse.link 的文件,里面的内容是: path=H://hp//download//java//eclipse-SDK-3.1.2-win32//eclipse//3rdplugins//jseclipse_1.5.5 存盘后,重启Eclipse,正常情况下,一般的插件就可以找到了,但是奇怪的是jseclipse却找不到,原来在Windows XP 下的时候,是删除 eclipse 的 configuration 目录下的 org.eclipse.update 文件夹后,重启,就会出现了(Ubuntu的配置文件目录不一样,是在/home/[username]/.eclipse/org.eclipse.platform_3.2.0/configuration/org.eclipse.update这个目录,不要删错了哟,如果删掉了eclipse安装目录的那个 org.eclipse.update 目录的话,小心你的Eclipse启不来了),但是遗憾的是还是没有找到JSEclipse插件,后来没办法,只好使用 gedit 打开 /home/[username]/.eclipse/org.eclipse.platform_3.2.0/configuration/org.eclipse.update/platform.xml 这个文件中的一个 <site …/>,手工加入如下内容:

<site enabled=”true” linkfile=”/opt/eclipse/links/jseclipse.link~” policy=”USER-EXCLUDE” updateable=”true” url=”file:../eclipse_plugins/jseclipse_1.5.5/eclipse/”>
<feature id=”com.interaktonline.jseclipse” plugin-identifier=”com.interaktonline.jseclipse” url=”features/com.interaktonline.jseclipse_1.5.5/” version=”1.5.5″>
</feature>
</site>

重启Eclipse,Window–>Preferences… 在左侧终于看到久违的 JSEclipse 字样了,呵呵,我终于成功了~!

抱歉!评论已关闭.