J2ME Programming. 2 Recommended Books Programming Wireless Devices with the Java2 Platform, Micro Second Edition (Paperback) by Roger Riggs (Editor),

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

JAVA Programming Environment © Juhani Välimäki 2003.
J2ME RMI 1 Java 2 Platform, Micro Edition Implementation of J2ME RMI Application Farooq Sheikh.
Introduction to Mobility Java Technology Mobile and Wireless Networks.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Introduction to Java Lab CS110A – Lab Section 004 Instructor: Duo Wei.
CENG 161 Introduction to Computer Science Instructor: Dr. Nurdan SARAN Lab Assistant: Arzu Burçak Sönmez.
What Is Malwarebytes? Malwarebytes is a free anti- malware program. Anti-malware programs are specifically designed to find and remove malware on your.
Lab 1 Instructor: Jolanta Soltis.
Java 2 Platform, Micro Edition (J2ME) By Xiaorong Wang.
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
How to Use The Borland C++ Compiler Version 5
Training 1 FrontPage Creating Web Pages. 2 Objectives 1. Open FrontPage. 2. Create Web pages. 3. Insert pictures 4. Create a hyperlink from a picture.
This example is a step by step walkthrough for installing the SRH Front Desk Printer in Windows 8.
PYTHON: LESSON 1 Catherine and Annie. WHAT IS PYTHON ANYWAY?  Python is a programming language.  But what’s a programming language?  It’s a language.
Servlets Environment Setup. Agenda:  Setting up Java Development Kit  Setting up Web Server: Tomcat  Setting up CLASSPATH.
INTRODUCTION TO C PROGRAMMING LANGUAGE Computer Programming Asst. Prof. Dr. Choopan Rattanapoka and Asst. Prof. Dr. Suphot Chunwiphat.
November 2014Prepared by the Computer Lab Montgomery County-Norristown Public Library.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 11 J2ME and MIDlets Rob Pooley
1 Mobile Computing Set Up Copyright 2015 by Janson Industries.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
J2ME Presented by May Sayed & Menna Hawash. Outline Introduction “Java Technology” Introduction “What is J2ME?” J2ME Architecture J2ME Core Concepts 
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Presented By: Muhammad Tariq Software Engineer Android Training course.
1 Chapter 1 Introduction to Java. 2 History of Java Java Originally for _________________________ devices Then used for creating Web pages with __________________________.
Java ACO101: Introduction to Computer Science. The History of Java Started out as a research project at Sun Microsystems in 1991 Code named “Green” Based.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
POS 406 Java Technology And Beginning Java Code
( ) 1 ISYE 7210—Fall 2005 Design of Real-Time Interactive Simulations (in Java) Initial Notes Christine M. Mitchell Director & Professor Center for.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Unit 1: Java and Eclipse The Eclipse Development Environment.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Object Oriented Programming Lecture 3. Introduction  In discussing Java, some items need to be clarified  The Java programming language  The Java virtual.
EIE375 BlueJ: Getting Started Dr Lawrence Cheung.
First Venture into the Android World Chapter 1 Part 2.
How to Install the JDK (Java Development Kit) Click hereClick here to download the JDK.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
ENDNOTE Installation Guide. E ENDNOTE ON LIBRARY PAGE ( Scroll down to see download instructions.
How to Install Eclipse Click hereClick here to download Eclipse.
You will need Dev C++ to help you with this project. If you do not already have this programming tool on your device you can visit
Compiling and running Java programs with BlueJ. Successfully compiled files program files in BlueJ You can tell from the shade of a program icon in BlueJ.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
PAYware Transact Terminal Interface Manager
INTRODUCTION TO JAVA AND ANDROID. Slide 2 Our Ecosystem Java Eclipse Android SDK.
1 Introduction to J2ME Outline MIDP Building J2ME Apps- Tool J2ME Wireless Toolkit Demo MIDlet Programming -- MIDlet Transition States -- Midlet Skeleton.
Intoduction to Andriod studio Environment With a hello world program.
การเขียนโปรแกรมภาษา จาวา Java Programming อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา Chapter 1.
Mobile Programming Mobile Programming - Ordibehesht Ordibehesht 1390.
ENDNOTE Installation Guide. E ENDNOTE ON LIBRARY PAGE ( Scroll down to see download instructions.
1 1 1 Introduction to Java. 2 History of Java Java – Originally for intelligent consumer-electronic devices – Then used for creating Web pages with dynamic.
Author: Loh Jianxiong Christopher Contributions: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang, Tong Chun Kit, Tania Chattopadhyay.
Digital Game Design ACST 3710 Your First Unity Program 1.
The eclipse IDE IDE = “Integrated Development Environment”
Obtaining the Required Tools
Java on the LEGO Mindstorms EV3
Introduction to Java Dept. Business Computing University of Winnipeg
Lecturer: Mukhtar Mohamed Ali “Hakaale”
How to Run a Java Program
1. Open Visual Studio 2008.
Introduction to Problem Solving & Programming using Processing 2
How to Run a Java Program
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Creating the First Program
Android Application Development
Introduction to Problem Solving & Programming using Processing 2
Introduction to Problem Solving & Programming using Processing 2
Presentation transcript:

J2ME Programming

2 Recommended Books Programming Wireless Devices with the Java2 Platform, Micro Second Edition (Paperback) by Roger Riggs (Editor), Antero Taivalsaari, Jyri Huopaniemi, Mark Patel, James VanPeursem, Aleksi UotilaRoger RiggsAntero TaivalsaariJyri Huopaniemi Mark PatelJames VanPeursemAleksi Uotila Wireless J2ME Platform Programming (Paperback) by Vartan PiroumianVartan Piroumian

3 Download J2SE SDK: To compile and run java, we firstly need to download the standard development kit (SDK) for J2SE (Java 2 Platform Standard Edition). The latest version of J2SE is To download, visit: then 1. Click "Download J2SE SDK"; 2. Select "Windows Offline Installation, Multi- language"; 3. Execute the file "j2sdk-1_4_2_06-windows-i586- p.exe" to install.

4

5 Download J2ME Wireless Toolkit 1.0.4: Now, you can use Textpad to write J2SE programs. However, our goal is to write Java 2 Platform Standard Edition (J2ME) programs for mobile phones. Originally, you have to download CLDC 1.1 and MIDP 2.0 for developing J2ME programs for mobile phones. Now, you can simply download J2ME Wireless Toolkit 2.2 which includes CLDC 1.1, MIDP 2.0 and interfaces to compile and run J2ME program. To download J2ME Wireless Toolkit 2.2, visit: then 1. Click "Download" at the bottom of the page. 2. Accept "Licence Agreement". 3. Select "Windows Platform" to download. 4. Execute the file "j2me_wireless_toolkit-2_2-windows.exe" to install.

6

7 Run Sample Program for J2ME. Now you can run sample J2ME programs. The steps are as follows: 1. Launch the "ktoolbar" in the J2ME Wireless Toolkit. 2. Click "Open Project". 3. Select a Project to open (says “Demos"). 4. Click "Run".

8

9 Run "HelloWorld" Console Program for J2ME In order to develop your own Program, you should know how to create a new Project using "ktoolbar". The steps to create a very simple project for a “Basics1" program is a follows: 1. Launch the "ktoolbar" in the J2ME Wireless Toolkit. 2. Click "New Project". 3. Type "Basics1" in both text boxes for "Project Name" and "Midlet Class Name". 4. Click "Create Project" and click "OK".

10 Run "HelloWorld" Console Program for J2ME (Cont.) 5. You can see a sentence saying that the location of "Java source files". 6. Download the file "Basics1.java" and save to that location (something like "C:\WTK22\apps\Basics1\src").Basics1.java 7. Click "Build" to compile. 8. Click "Run" to execute the program. You will see the string "Hello World!" in the console after you click the "Launch" button in the mobile phone

11.

12 Run "HelloWorld" Application Program for J2ME Let's jump right in the water by creating a new project. Click on New Project in the button bar. The toolkit prompts you for a project name and the name of a MIDlet class in the project. Fill in HelloSuite and HelloMIDlet as shown below Once you fill in the project name and first MIDlet name, the toolkit gives you a chance to edit the project settings. Just accept the defaults for now; press OK to finish creating the new project. In the text output pane of the J2ME Wireless Toolkit, you'll see several helpful messages telling you where to store the project's source files. On my machine, these messages are:

13 Creating project "HelloSuite" Place Java source files in "C:\WTK22\apps\HelloSuite\src" Place Application resource files in "C:\WTK22\apps\HelloSuite\res" Place Application library files in "C:\WTK22\apps\HelloSuite\lib" The toolkit stores each project in a subdirectory of the appsdirectory. The name of the subdirectory is the same as the name of the project. Here, the toolkit has created a new directory, c:\WTK22\apps\HelloSuite. Each project subdirectory has a standard structure: