---
title: "eclipse下安装Extjs的插件spket"
author: "deejay"
date: "2010-03-20T20:08:02Z"
tags: []
categories: ["Web前端"]
slug: "eclipse-extjs-spket"
draft: false
lastmod: "2010-03-20T20:08:02Z"
id: 620504
url: "https://deejay.iteye.com/blog/620504"
---

### eclipse下安装Extjs的插件spket

[extjs](http://xiehx163.blog.163.com/blog/#m=0&t=1&c=fks_087070083095081071093081085095082087085069082081095069) 2009-08-28 23:01:03 阅读1191 评论0 字号：大中**小**

最近项目要用ext进行开发，所以这段时间开始学习ext.

我这里用的是ext3.0,eclipse3.5。

每次都要去查API，很烦，所以装个EXT提示的插件对初学者来说有很大的帮助。

假设你已经下载了ext3.0和spket的源码。

注意，官方的ext3.0里面没有提供ext.jsb文件.得自己另外去网上下载一个，这里我把下载到的ext.jsb文件放在ext-3.0.0的根目录下。

一、

以Eclipse插件形式安装

启动ECLIPSE Help → Software Updates → Find and Install… → Search for new features to install → New remote site…

名称: “Spket”，地址URL是http://www.spket.com/update/

完成后重启（自动会加载插件，也可CMD ECLIPSE目录 使用命令 eclipse -clean 重新编译）

Window → Preferences → Spket → JavaScript Profiles → New ；

输入“ExtJS”点击OK；

选择“ExtJS” 并点击“Add Library”然后在下拉条中选取“ExtJS”；

选择 “ExtJS”并点击“Add File”，然后在你的./ext-3.0.0目录中选取“ext.jsb” 文件，注意一定也要把ext-all.js和ext-all-debug.js这两个JS文件选择进来，不然即使配了也不会有提示，我开始就是没有把这二个JS加进来。

选择你想加载的插件，这里我们选择ExtJS.

设置新的ExtJS Profile，选中并点击“JavaScript Profiles” 对话框右手边的“Defalut”按钮；

JS打开方式为 Window → Preferences → General→ Editors→ File…

选择JS 或者新创建 设置默认打开方式 为 Spket JavaScript Editor(default) (把spket设为js默认的编辑器)

[![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://img.bimg.126.net/photo/b1JpzSV3e34TCShq2iAbgQ==/2256866363266827532.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")](http://img.bimg.126.net/photo/b1JpzSV3e34TCShq2iAbgQ==/2256866363266827532.jpg)

 

 

二.安装Spket

第一种方法：网上更新方式

1.插件首页：[http://www.spket.com](http://www.spket.com/)

2.插件名称：Spket IDE

3.更新连接（Update Site）：[http://www.spket.com/update/](http://www.spket.com/update/)

更新安装方法：

1.\[Help]-\[Software Updates]-\[Find and Install...]

2.\[Search for new features to install] -&gt; \[Next]

3.\[New Remote Site...] Name: "什么都行，spketjs" URL: [http://www.spket.com/update/](http://www.spket.com/update/)--&gt; \[Finish]

 

第二种方法：网上下载spket-1.6.16.jar破解版（目前最新版本）

![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/1.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

1.如果你的JDK在1.6以上，可以直接双击spket-1.6.16.jar运行安装。

![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/2.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

其它，使用命令行方式。（注意：自己切换命令行到spket-1.6.16.jar所在目录）

![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/3.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

2\.

![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/4.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

 

![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/5.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

 

![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/6.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客") 

![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/7.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/11.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

至此，安装完成。

 

二、配置Spket

 

注意：如果在安装spket过程中，你的eclipse或者Myeclipse是打开的，请重启eclipse或者Myeclipse。以便初始化插件，下面才会在Preferences中看到 Spket选项。

基本步骤如下：

1)Window → Preferences → Spket ；

![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/12.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

 

2)Spket → JavaScript Profiles → New， 输入“ExtJS”点击OK；

![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/13.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

3)选择“ExtJS” 并点击“Add Library”然后在下拉条中选取“ExtJS”；

![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/14.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

4)选择 “ExtJS”并点击“Add File”，然后在你的./ext-2.x/source目录中选取“ext.jsb” 文件；

 ![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/15.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

5)设置新的ExtJS Profile，选中并点击“JavaScript Profiles” 对话框右手边的“Defalut”按钮；

![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/17.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

下面这个操作，根据自己需要设置（可以全选）。

 ![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://p.blog.csdn.net/images/p_blog_csdn_net/elifefly/EntryImages/20090110/16.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")

把ext.jsb和ext-all.js以及ext-all-dubeg.js三个一起加上才行。

[![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://img.bimg.126.net/photo/_CMV6xJboe3BYsWQcnBdbQ==/5678757655138385926.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")](http://img.bimg.126.net/photo/_CMV6xJboe3BYsWQcnBdbQ==/5678757655138385926.jpg)

6)重启eclipse或者Myeclipse；

7)创建新的JS文件并输入： Ext这样就可设置Ext Code代码自动完成的功能。

效果如下：

[![eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客](http://img.bimg.126.net/photo/g82hJlDG9x_-6rwJXH2flA==/4262375572330794275.jpg "eclipse下安装Extjs的插件spket - xiehx163 - xiehx163的博客")](http://img.bimg.126.net/photo/g82hJlDG9x_-6rwJXH2flA==/4262375572330794275.jpg)