Title: Introduction to EclipseME
1Introduction to EclipseME
- ???? ???
- ctyang_at_thu.edu.tw
- http//web.thu.edu.tw/ctyang/
- http//mail.csie.thu.edu.tw/ctyang/HDM/J2ME/
2Outline
- What is EclipseME?
- Basics and Features
- Development
- Demo
3(No Transcript)
4http//developers.sun.com/mobility/learning/course
cert/
5(No Transcript)
6(No Transcript)
7(No Transcript)
8(No Transcript)
9(No Transcript)
10(No Transcript)
11(No Transcript)
12(No Transcript)
13(No Transcript)
14(No Transcript)
15What is EclipseME?
- Eclipse Based Toolsets
- IBM WebSphere Studio Device Developer
- Nokia Developers Suite for J2ME
- Other SDKs that extend these or existing
functionality - Non-Eclipse Based Toolsets
- NetBeans with Mobility Pack
- Sun Java Wireless Toolkit
- Borland jBuilder Mobile Edition
- Other SDKs
16What is EclipseME?
- What Makes Eclipse Unique?
- Incremental build support
- Eclipse provides a compiler that understands
structural changes - Only compiles dependencies as necessary
- Automatically compiles changed files
- Plug-in ability
- Provides ability to extend all aspects of the
Eclipse platform - Provides ability to add new builders
17What is EclipseME?
- History
- Needed Eclipse tools for programming my cell
phone - Couldnt find anything at the time, thus
EclipseME was born - Sourceforge project
- Started in July 2003
- 29 released versions
- Nearly 200,000 downloads
18Basic Functions
- Glue between Eclipse and J2ME toolkits
- Plug-ins into Eclipse providing extensions to the
Java Development Tools (JDT) - A goal of seamless integration for Java ME
development - Incremental preverification Eclipse builder
- Emulator run and debug launch integration
19Features
- Multiple wireless toolkit support
- Wireless toolkit preferences
- Platform component and definition support
- Create new J2ME Midlet Suite Project
- Create new MIDlet
- Java Application Descriptor (JAD) editor
20Features
- Automatic incremental preverification
- Eclipse launch support for Emulator
- MIDlet debugging support
- JAR and obfuscated JAR packaging
- Over the air deployment testing server
- Export Antenna build files
- Automatic MIDlet signing
21Features
- Extensible Platform
- A minimal platform for extension
- Extension points for adding new wireless toolkit
definitions - Extension points for defining device editors
- EclipseME is more tool than platform
22Professional Open Source
- Good free support
- Mailing lists
- Bug tracker
- Enhancement request tracker
- Polished functionality
- Polished and accurate help
- Polished and accurate web site
23EclipseME Development
- Open-source
- Eclipse Public License
- Philosophies
- Release early, release often
- Open source can be professional and polished
- Sourceforge hosted
- http//eclipseme.org is hosted elsewhere for
added flexibility
24EclipseME Development
- Keeping up with the Jones'
- Eclipse tools are a moving target
- Wireless Toolkit vendors are a moving target
- Team Management
- Balance is tough
- It is tough to give the good work away
- It is tough to give up creative control
- It is tough to do everything with one person
- The real world gets in the way
- Managing to find time for EclipseME can be
difficult sometimes
25New Futures of EclipseME
- Addressing Device Fragmentation
- Preprocessing support
- Batch build for multiple device definitions
- Lots of new device support
- Palm, Blackberry, etc.
- Ongoing support for new versions of previous
devices - New tools
- J2MEUnit, J2ME Polish
- Web Service stub generation
- Bugs, bugs and bugs
26New Futures of EclipseME
- Eclipse Mobile Tools for Java Project
- An official Eclipse Foundation project
- Formed by Nokia and IBM
- EclipseME is involved in MTJ
- MTJ is using EclipseME code
- EclipseME will eventually be replaced by MTJ
- EclipseME users will be migrated to MTJ
- EclipseME may still be a layer on top of MTJ
27References
- Eclipse
- http//www.eclipse.org
- EclipseME
- http//eclipseme.org
- http//sourceforge.net/projects/eclipseme/
- EclipseMEAnother IDE Option for J2ME Development
- http//www.devx.com/wireless/Article/29233
- Eclipse Mobile Tools for Java
- http//www.eclipse.org/dsdp/mtj/
28Demo
- Manage devices
- Create Midlet suite
- Create midlet
- Application Descriptor Editor
- Packaging support
29????
- Java ?? j2sdk v1.4.2_05 (For windows)
- ??? j2sdk-1_4_2_05-windows-i586.exe
- J2ME Wireless Toolkit 2.5.2
- ??? sun_java_wireless_toolkit-2_5_2-windows
- J2ME?????? EclipseME
- ??? eclipseme.feature_1.7.9_site.zip
- http//web.thu.edu.tw/g97350007/www/tool/
- IDE????? Eclipse 3.1
- ??? eclipse-SDK-3.1-win32.zip
- http//210.60.65.200/course/2006spring/software/ec
lipse-SDK-3.1-win32.zip
30?? Java SDK
31Windows ??J2SDK
32?????????
- ????????????J2SDK,??????????????Java???
- J2SDK J2SE Software Development Kit?
- ?SUN?????????
- http//java.sun.com/
33Java??????
- J2SE 1.4.2_08 SDK??
- J2SE????http//java.sun.com/j2se/1.4.2/download.h
tml - ?? Download J2SE SDK ??
- ?? J2SE 1.4.2 Documentation ??API??
- ????J2SE 1.4.2_08 SDK
34Java??????
35Java??????
??? I accept the terms in the license agreement
?????Next.
36Java??????
??????????????????
??? Change ?????????,???????????Next??????
37Java??????
?????????????????Java Plug-In?IE?????
??? Install ???SDK
38Java??????
????????
39Java??????
??? Finish ???
40Java??????
???????????????????,???????????
???????????
41Java??????
??CLASSPATH?Path???,?????????
42Java??????
??SDK????? C\j2sdk1.4.2_08\bin
???????????????????,?????????????
43Java??????
????????,???java ?????????????????????,??????????
44Java??????
????????,???java -version??????????? 1.4.2_08?
,??????
45Linux ??J2SDK
46Java??????
- J2SDK?????
- ???? http//java.sun.com/j2se/1.4.2/download.html
- ???J2SE v 1.4.2 Documentation
- ??Download J2SE SDK ??
- ??Linux Platform????
- ????J2SDK
47Java??????
- ????,???j2sdk-1_4_2_08-linux-i586.bin,???????
- ???????
chmod 766 j2sdk-1_4_2_08-linux-i586.bin
. j2sdk-1_4_2_08-linux-i586.bin
48Java??????
Sun Microsystems, Inc. Binary Code
License Agreement for
the JAVATM 2 SOFTWARE DEVELOPMENT KIT (J2SDK),
STANDARD EDITION, VERSION
1.4.2_X SUN MICROSYSTEMS, INC. ("SUN") IS
WILLING TO LICENSE THE SOFTWARE IDENTIFIED BELOW
TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT
ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE
TERMS (COLLECTIVELY "AGREEMENT"). PLEASE READ
THE AGREEMENT CAREFULLY. BY DOWNLOADING OR
INSTALLING THIS SOFTWARE, YOU ACCEPT THE TERMS
OF THE AGREEMENT. INDICATE ACCEPTANCE BY
SELECTING THE "ACCEPT" BUTTON AT THE BOTTOM OF
THE AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND
BY ALL THE TERMS, SELECT THE "DECLINE" BUTTON AT
THE BOTTOM OF THE AGREEMENT AND THE DOWNLOAD OR
INSTALL PROCESS WILL NOT CONTINUE. 1.DEFINITIONS.
"Software" means the identified above in
binary form, any other machine readable materials
(including, but not limited to, libraries, source
files, header files, and data files), any updates
or error corrections provided by Sun, and --More--
49Java??????
50Java??????
- ????
- ??????????,???j2sdk1.4.2_08??,?????????????
- ????bin?demo?jre?include?lib?man????
51Java??????
- ?????,???PATH ?????
- ?????????
export PATHPATH/j2sdk1.4.2_08/bin/
????????
52?? J2ME Wireless Toolkit
532.1 WTK 2.5??
- ????????MIDP?????????????????
- ??????????????(byte-code preverifier)?KToolbar????
???,??????????????????????? - ?????Release???J2ME WTK 2.5,?????http//java.sun.
com/products/sjwtoolkit/download-2_5.html,???????
sun_java_wireless_toolkit-2_5-windows.exe? - ????UltraEdit???????????
542.2 WTK 2.5???
- ???WTK 2.5??,????JDK 5(1.5)??????,????????http//j
ava.sun.com/javase/downloads/index.jsp????,???????
?JDK 6? - ???WTK 2.5??,?????????????????
- ?????????,?????????????
55- ???????????,??????J2ME WTK 2.5?????????,?????,????
Next????????
????????
56- ???????????,?????,????Yes???,????????
Sun???????????
57- ??Java???????,?????????,???????????????,?????,????
????????????
????????
???????????Brower???? ?????????
58- ????????,????Next???,??J2ME WTK?????????,????Brows
e????????????,???????C\WTK25???,??????
??WTK????
59- ?????????,????Next???,??????????,??????,??????J2ME
WTK 2.5????????????,??????
J2ME Wireless Toolkit 2.5 ??????
60- ???WTK 2.5,??Windows????????????????Sun
Java(TM)Wireless Toolkit 2.5 for CLDC??Wireless
Toolkit 2.5???,?????????????
WTK 2.5???
61- J2ME WTK????????????????????????????
- ???????????????,??????????????????????????????????
??? - New Project(????)??????????
- Open Project(????)???????????
- Setting(??)??????JAD?????
- Build(??)?????????
- Run(??)????????????
- Clear Console(?????)??????????????
- Device(?????)????????????????,??????????
622.3 WTK????
- ??WTK 2.5???????????,???????
- ????????????New Project?????,???New Project??????
63- ??New Project????????Project Name?(???)??MIDlet
Class Name?(MIDlet???)????,??????????MIDlet?????,?
?????????HelloJ2ME,?MIDlet?????HelloMIDlet,???
???
?????????
64- ????Create Project???,????????????
?????API??
65- ????OK??????????????KToolbar???,????????,?????????
?HelloJ2ME,?????????????,??????
??????????????
66- ??????????????????????????,?C\WTK25\apps\
HelloJ2ME??????????????,??????????
???????
67- ?????????????,???????????
68- ?src???,??HelloMIDlet.java?,?????????UltraEdit????
,?????
69(No Transcript)
70- HelloMIDlet?????????,??????????,??????????????????
?????????????,?Canvas??????????????????????,??????
????,???????????(????res???)???????????
71(No Transcript)
72- WTK 2.5??????????????????????,????Bulid???,?HelloM
IDlet????,????????????,??????????,????????????????
- ????????,?????????????????????WTK????????????,????
??
73??????
74- ??Device?????????????,????????????DefaultColorPho
ne,????Run????,????????????????,??????
75- ??????????????Launch?,????????,????????
762.4 ??????
- ?WTK 2.5?????Setting???,?????????????,????????????
??
772.4.1 ??????
- ?Required?????????JAD?????????,??????
???????
78- ?Optional??????????????????,???????J2ME???????????
??
???????
79- ?Ueser Defined??????????????????????Add???,???????
??,??????????MIDlets????????????MIDlet?
802.4.2 ????
MIDlet?????
81(No Transcript)
822.4.3 Manifest??
- ????(MIDlet?????)???????,?6???????,????????,JAM???
????MIDlet??,????? - MIDlet-Name(??)
- MIDlet-Version(??)
- MIDlet-Vendor(???)
- MIDlet-ltngt(??)
- MicroEdition-Profile(MIDP??)
- MicroEdition-Configuration(CLDC??)
832.4.4 JAD??
- ????JAD????????
- ????????????,??JAR????,??????,???????
MIDlet????????????? - ??????,???????????????JAR??
84- JAD??6???????,???????????,?????????????JAR,???
- MIDlet-Name(??)?
- MIDlet-Version(??)?
- MIDlet-Vendor(???)?
- MIDlet-ltngt(??)?
- MIDlet-Jar-URL(Jar??????)?
- MIDlet-Jar-Size(Jar????)?
852.5 ??????
- ???????????????????,????????????MIDP????????JAR?,?
???????Class????????????????JAR??
862.5.1 ?????
- KToolbar?Build?????????????????????,???????JAR?,
?????MIDP??,??JAD????,JAR????,??????? - ????????Project??Package??Create
Package?,????????,???????? - KToolbar??????,????????JAR?,???JAR???apps\HelloJ2M
E\bin???,??????
87???Create Package???
88- ??????,??????KToolbar?JAR?JAD?????,???,???JAR??JAD
????apps\HelloJ2ME\bin???,??????
????JAR?JAD?
892.5.2 ??????
- ?????,??????????????????,???(.class?)?????,??????J
ava Byte Code????????????,??????,?????????????????
????????????? - ???????????????????????????,?????JAR?????
- ??????????????????????ProGuard?RetroGuard?
90- ??????ProGuard??,??????lib??????proguard.jar?,????
?WTK?????bin?,??????,??????
??????apps\HelloJ2ME\bin??JAR?? ???,??????????????
????
???????
912.5.3 ??????
- ????????????????,??????????,???????????????
- JODE,?????http//jode.sourceforge.net/,?????
- ProGuard,?????http//proguard.sourceforge.net,????
? - RetorGuard,?????http//www.retrologic.com,?????,?
??????????? - DashO,?????http//www.preemptive.com,????,???
?????? - ZKM,?????http//www.zelix.com,????,????
- Jbulider,?????http//www.borland.com,???????
-
922.6 ?????JAR?
- ???JAR?,??Windows????????????????Sun
Java(TM)Wireless Toolkit 2.5 for CLDC??Run MIDP
Application???,????????JAD(Java Application
Discriptor)?,JAD????JAR??????? - ???????JAR??,???JAD??
- ?????,????JAR?JAD?????????
93- ????,J2ME???????????????????????????????????????
GPRS??????(OTA),??????
??OTA??????
94- OTA????????????
- ???? ?
- ????????????
- ?????MIDlet?? ?
952.7 ???????
- ???????J2ME??,??????????,????????????????????????,
?????????????,?????????????,??????????????????????
- JBuilder
- Eclipse
- NetBeans
962.8 ????
- ?????MIDP????WTK??????,??????????????
- ???????????????,???????????????????????????
- ?????????J2ME????????,??JBuilder?Eclipse?NetBeans,
?????????????????
97Eclipse ?????????????,????
98Eclipse Me??
- ??eclipse??
- ?? help Software Update Find and
Install
99- ?? Search for new features to install next
100 101- ????????? eclipseme.feature_1.7.9_site.zip
102(No Transcript)
103(No Transcript)
104(No Transcript)
105(No Transcript)
106(No Transcript)
107(No Transcript)
108 109(No Transcript)
110?wireless Toolkit??
111(No Transcript)
112(No Transcript)
113???project
114???class
115(No Transcript)