`
arpenker
  • 浏览: 334227 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

如何解决netbeans 6.8开发EXTJS时库不存在的问题

阅读更多
淘二哥女装专业导购
http://www.tao2ge.com

在开发EXTJS项目的时候需要配置环境,加载extjs2.0的库.
但根据权威文件.我们在NETBEANS无法实现.

I am using NetBeans 6.5 and Ext JS 2.2.
NetBeans menu "Tools" and then submenu "Libraries"
Click the "New Library..." button
Set Library Name: as "ExtJS2.2" and Library Type: as "JavaScript Libraries" and then click "OK"
Click the "Add Zip..." button
Select the location of where you have your "ext-2.2.zip" file
Click "OK" to close the Library Manager window.
Now, one can hook up the new Ext JS library to the project you would like code completion with
Right click the proposed project and select "Properties"
Select the "JavaScript Libraries" Category
Click the "Add..." button to open up the "Add JavaScript Libraries" window
ExtJS2.2 should be listed as an available JavaScript Library
Check the Add box for the ExtJS2.2 Library and click "OK"
The Extracting JavaScript Libraries window should pop up and it should take a good couple minutes to extract the Ext JS libraries for use with NetBeans to activate the code completion functionality.
Click "OK" to close the Project Properties window
Open up a javascript file in your project and start with typing "Ext."
Notice how the code completion is activated and one may now scroll thorugh the language and enjoy NetBeans taking care of some of the guess work we coders must deal with when coding to multiple APIs and various syntax oddities.
使用以上方式时在第3步的时候我们根本就找不到JAVASCRIPT LIBRARIES 这个下拉选项.

一开始.我们发现这个版本的源非常的少.
于是我们添加一个源.(menu-->plugins-->settings-->add
取一个名字.
然后添加以下URL.
http://updates.netbeans.org/netbeans/updates/6.8/uc/m1/dev/catalog.xml.gz

这时候我们可以看到有效的插件数上升到128了.

那我们如何实现添加JS库呢?
很简单,在6.8中TOOLS-->PLUGIN 的升级源中打开有效的插件这个选项卡,在列表中找到javascript 开头的一个JQUERY 库.勾选后安装完毕.

这时候我们再到TOOLS-->LIBRARIES 弹出窗中可以看到JAVASCRIPT LIBRARIES .

这样.我们新建一个EXTJS2 ,然后指定你的EXTJS2的安装路径到这儿了.

menu-->EXTJS2-->reserved(选项卡右边保留区)-->add增加四个指定文件,就是指EXTJS的主要文件

source-->ext.jsb
adapter-->ext-->ext-base.js
ext-all.js
ext-core.js

OK.FINISH.

至此我们NETBEANS6.8就可以开发EXTJS2.0了.

http://www.ophonemall.com
1
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics