Eclipse安装Aptana插件

Aptana是一个开发JavaScript的很好的ide,且aptana提供了eclpse的插件,用起来几乎很上手而且很简单、方便,没有理由不去爱它。

但是在Eclipse下安装aptana总会遇到一些问题,笔者也一样遇到了许多问题。现在这里就做一个总结,安装aptana遇到的问题:

1、安装以后必须有Firefox支持。

因为aptana需要firefox的JavaScript调试工具做调试,因此如果你安装过了aptana之后系统没有安装firefox,那么,还是推荐你安装一个firefox吧。即使不用这个浏览器也可以安装上,省的出现一些其他的不可预料的问题。

2、安装过程中出现无法下载或者不兼容的问题。

这个问题正式困扰我好几天的问题。如果aptana安装不上或者安装之后出现错误,一般都是aptana和eclipse的版本问题,因此请下载之前认真阅读官方网站的资料以及版本的限制。一般说来,你使用的eclipse版本越高,那么对应的aptana的版本就需要越高。

3、是自动在线下载安装?还是link方式安装?

笔者推荐使用后者,也就是手动配置link的方式安装aptana插件。这样可以避免许多问题。笔者前几次安装aptana插件都失败,原因就在于是自动下载安装的,可每次都会出现错误,而改用手动配置link的方式安装后,一切问题迎刃而解了。

那么,跟着我一起来试试吧。

1、先去aptana的官方网站下载eclipse的插件

地址:http://update.aptana.com/update/studio/3.2/

强烈推荐手动下载插件的方式而不是在线升级的方式,尤其你用的不是eclipse而是完整安装版的myeclipse。

2、手动以link方式安装aptana插件

首先在你的eclipse目录下打开eclipse文件夹:


然后将下载后的aptana插件文件解压缩到任何目录(笔者解压缩到了eclipse所在的目录)。再在links文件夹中新建一个文本文件aptana.link,其内容形式为:

path={aptana插件存放的位置}

例如笔者的link文件内容为:

path=C:\Program Files\Eclipse-6.0M1\eclipse\Aptana

然后,重启myeclipse就可以发现可爱的aptana的界面菜单了

(如果安装过程中出现问题,请留言。)

接下来就可以发现其伟大的特点了。


将Aptana编辑器设置成myeclipse默认的编辑器

如果我们想把aptana的编辑器设置成myeclipse默认的编辑器的话,那么可以在多做一点事情,这样方便我们今后的开发了。笔者也正式如此。

 

在Window菜单中找到Preferences,打开的菜单中左边的树中展开General,找到editor

点击File Associations,然后在上边选择要设置的文件后缀名,在下边找到aptana相应的编辑器,然后点“default”即可完成默认的设置了。很简单的,试试吧。

 

 

 

个人实际情况的实现方法:

 

 

 

忘记说明一下我的情况了。我没有用上面的方法,因为我用的Eclipse是Eclipse 是下面版本信息的

Eclipse Java EE IDE for Web Developers.

Version: Indigo Service Release 1
Build id: 20110916-0149

(c) Copyright Eclipse contributors and others 2005, 2011.  All rights reserved.
Visit http://www.eclipse.org/webtools

 

我要安装 aptana 插件是通过下面的方法

2、输入插件提供方提供的下载地址

http://download.aptana.com/studio3/plugin/install

3、根据提示next就行

 

 

具体也可以参考aptana官网提供的说明

官网原版说明

copy原版内容如下

-----------------------------------------------------------------------------------说明--------------------------------------------------------------------------

Installing via Eclipse

Please copy the following Update Site URL to your clipboard and then follow the steps listed below to add this URL to yourAvailable Software Siteslist. Attempting to access this URL using your web browser will return an Access Denied error.

http://download.aptana.com/studio3/plugin/install

  1. From the Help menu, select Install New Software... to open the Install New Software dialog.
  2. Paste the URL for the update site into the Work With text box, and hit theEnter (orReturn) key.
  3. In the populated table below, check the box next to the name of the plug-in, and then click theNext button.
  4. Click the Next button to go to the license page.
  5. Choose the option to accept the terms of the license agreement, and click the Finish button.
  6. You may need to restart Eclipse to continue.

 

当然,你也可以下载后手动安装。这也是一种方法

 

 

怎么设置aptana作为默认的JavaScript或CSS的编辑器呢?

在菜单中选择Window->Preferences,弹出Eclipse配置菜单

选择树状结构中的,Ganaral->Editors->File Associations ,将*.htm,*.html,*.js的默认编辑器设为Aptana的相关编辑器

在默认的文件类型列表中,如果没有找到*.css ,可以自己加一个,然后做默认设置;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值