« Project 1 - ideas | Main

Setup to J2ME - Java for Mobile Phones - Using Eclipse

Get computer ready to code for J2ME and Nokia N95:
1. Install Eclipse Classic
2. Update Java on Computer + Install JDK 5 or 6?
3. Install Wireless Toolkit - MPowerPlayer ( emulator)
4. Install Mobile Tools for Java - plug in for Eclipse to make Midlets
5. Configure MTJ and Eclipse Settings
6. Get hello world running!

Install MPowerPlayer:
A. Under Window Menu > Preferences > J2ME > Device Management --import a wireless toolkit.
B. Under File Menu >New Project> J2ME > midlet --make a new project
C. Set a wireless toolkit for the project (you might have been asked about this when you made the project and can skip) Right (command) Click on the project Properties > J2ME Pick a wireless toolkit for this project.

Install Mobile Tools for Java
A. First see if all the steps before were completed
B. Eclipse > Software Updates > Add website>> http://download.eclipse.org/dsdp/mtj/updates/1.0/stable/
C. Some steps I missed out! Will try to reinstall later! ( come back later to write about it - maybe nothing is missing...)
D. Get the PreProcessing setup ( check installation MTJ link)

Get Examples Running:
A. New project > Java ME > MiDlet Project
B. Give it a name. Check to see if MPowerPlayer is active on the Configuration
C. Press Finish > Then Yes
D. Opens Overview
E. Select Project > New Class
F. Code or Paste Code
G. Save
H. Click Application Descriptor > Choose Midlets ( Menu on the Bottom) > Add > Give name and choose class name ( browse > show all the classes) > Apple + S to Save
I. Control+Click Class > Run As > Emulator Java ME Midlet
J. Export: Mobile Tools for Java > Create Package > Files go to Deployed Folder > filename.jar >> send to phone!

note: if error> Have to do something to the project config file: Application Description > RunTime > Add > Give it a Name +Define Sdk and Device

Resources:
Eclipse Download ( Classic for Mac)
Mobile Tools for Java
Tutorials 1 | 2
Get Files from CVS

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on February 7, 2009 1:38 AM.

The previous post in this blog was Project 1 - ideas.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.35