Configuring ExtJS in Eclipse

Source: Internet
Author: User

New project launches, need to use ExtJS, in order to learn it, now began to record this knowledge, go!

First, configure the Eclipse plugin Spket

    • Eclipse version: Eclipse Java EE IDE for WEB developers. Version:mars.2 Release (4.5.2)
    • Extjs4.2:http://cdn.sencha.com/ext/gpl/ext-4.2.1-gpl.zip website Address: Http://www.sencha.com/products/extjs

    • Open Eclipse Select Help-->install New Software, click the Add button, name any, location input: http://www.agpad.com/update/, follow the prompts to click Next Next, Start installing the Spket plugin.
    • Install end, restart Eclipe, select Window-->preferences, Discover spket options, select Spket>javascript Profiles, click the New button on the right, name enter ExtJS, click Add Library button, select ExtJS, click the Add File button, select the Ext-all-dev.js file, then click ExtJS (with G icon), select the default button, restart Eclipse.
    • Create a new. js file, enter ext. After the automatic prompt method list, the configuration is successful.
    • Configure the JS default editor, select Window>preferences>general>editors>file associatior>*.js> select Spket as Default.

Ii. introduction of ExtJS Files

    • Create a new Web project in Eclipse and add several core files to the EXTJS structure such as:

Third, the preparation of procedures, testing

    • New Index.js File:
Ext.onready (function() {            Ext.Msg.alert (' hello ', ' Hello World ');        });
    • New index.jsp File:
<%@ Page Language="Java"Import="java.util.*"pageencoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en"><HTML><Head><!--Introducing ExtJS Frame Styles -<Linkrel= "stylesheet"type= "Text/css"href= "Extjs4.2.1/resources/css/ext-all.css"><!--referencing the Chinese environment file -<Scripttype= "Text/javascript"src= "Extjs4.2.1/locale/ext-lang-zh_cn.js"></Script><!--referencing ExtJS boot files -<Scripttype= "Text/javascript"src= "Extjs4.2.1/bootstrap.js"></Script><!--reference index.jsp corresponding to Index.js -<Scripttype= "Text/javascript"src= "Index.js"></Script></Head><Body></Body></HTML>
    • Start Tomcat, run the Web project: http://localhost:8888/WebDemo/

OK, done, ExtJS knowledge is still a lot, learn slowly.

Configuring ExtJS in Eclipse

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.