• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Midlet Development with Sun Toolkit

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I download the Wireless Toolkit from Sun and the other necessary pieces for developing Midlets. However, the toolkit does not appear to be helpful enough to get started.
I create a new project and it asks for source files, etc.
I thought the toolkit would be an IDE that would help me develop an app. What else is necessary to develop an app? Am I missing something? How do I get started?
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please look at this article:
Quick Start Guide:
JavaTM 2 Platform Micro Edition, Wireless Toolkit
By Dana Nourie
November 2000

The J2METM Wireless Toolkit is for developing MIDP-compliant applications targeted for devices such as cellular phones and two-way pagers. The download includes tools, documentation, an emulation environment, ready-to-run examples, and a module to integrate with ForteTM for JavaTM Community Edition, providing a complete development environment to write and test applications. J2ME Wireless Toolkit installs easily, and development and testing within this GUI environment requires absolutely no extra system configurations.
This article describes hardware and software requirements, the Wireless Toolkit's components, then walks you through running example demos and creating a new project. Information presented here is intended to be a quick start guide to get you up and running and not a replacement for the detailed User's Guide, where you will find more information.
What You Need
You will need the following to run the Toolkit on your PC:
Hardware
��Processor with at least a 166-MHZ CPU (If using with Forte for Java Community Edition, 300-MHZ CPU)
��Memory 64 Mbytes (If using with Forte for Java Community Edition, 128 Mbytes)
��Hard Disk Space 15 Mbytes (If using with Forte for Java Community Edition, 30 Mbytes)
Software
��Microsoft Windows 98 Operating System
��J2ME Wireless Toolkit
��JavaTM 2 Standard Edition (J2SETM) Version 1.3
JDK must be version 1.3, or during installation you'll be given the options to download J2SE 1.3 or cancel installation.
��ForteTM for Java Community Edition (Optional)
��Any text editor (Needed only if you are NOT using ForteTM for Java Community Edition)
Toolkit Components
APIs and Demos: Mobile Information Device Profile (MIDP) and Connected Limited Device Configuration (CLDC) APIs are provided, eliminating the need for separate downloads. In addition, the demo applications are MIDP-compliant.
Development Tools: Simply naming your project and application enable the Toolkit to write a JAD file. The KToolBar makes it easy to compile, build, and execute a Java application with the Emulator to your target emulation device at the click of a button. In addition, the Emulator supplies run-time logging of events, including method tracing, garbage collection, class loading and thrown exceptions, and the option of running the tools from the command line.
J2ME Wireless Module: This plug-in module runs the development tools under Forte for Java Community Edition. This option eliminates the need for a separate text editor and enables developers to write, test, and run applications from within one GUI development environment.
Installing the Toolkit
To install the Toolkit:
1.Download the Toolkit.
2.Double-click the j2me_wireless_toolkit-1_0.exe installer icon.
3.If you are going to be using Forte for Java Community Edition, select Custom from the Setup Type dialog.
4.Make certain the name of the install directory does not have spaces.
5.When installation is complete, drop the Toolkit icon onto the desktop or Taskbar for convenience.
No system configurations are necessary. Once the Toolkit has located the J2SE software and has everything else it needs, you are ready to use the J2ME Wireless Toolkit.
Running Example in Toolkit
The J2ME Wireless Toolkit supplies example demos, ready to run in the device emulators.
Start the Toolkit by:
��Double-clicking the icon.
Or:
��Click the Start button
��Select Programs
��Select the directory name you had given at installation time, then click KToolbar.

Opening Screen of the Wireless Toolkit
The following steps walk you through running an example demo:
1.Click the Open Project button.
A dialog called Open Project appears with the apps directory structure listed.
2.Select example and click Open Project as the image shows:

Another window appears, stating that the project "example" is loaded.
3.In the Device menu, select the desired emulation device for testing, then click the Run button.
Pager was selected for this article, the menu button clicked and Done selected, resulting in the following:

Pager Emulation
4.Test the example in different emulation devices by selecting another emulation from the device menu, then clicking the Run button.
Creating New Projects
The steps in developing your own projects within the Toolkit is slightly different but equally simple. This article uses the FirstMIDlet example code from the article, "Wireless Application Programming" by Qusay Mahmoud, with the project name TestApplication:
1.Click the New Project button.
A New Project window appears, asking for a project name and MIDlet class name.

New Project Window
2.Click Create Project.
A Settings for project "TestApplication" window appears. Change any values necessary for your application in this window.
The first tabbed pane displays required values, a second pane shows optional values that can be added to the MIDlet, and the MIDlets pane allows other midlets to be added, removed, or edited:

MIDlet Suite Settings
3.Click OK.
The Toolkit creates a directory under apps with the project name you typed. In this case, TestApplication, and a TestApplication window appears, specifying path instructions about where source and resources files need to be saved in the message console:

Message Console in TestApplication Window
Save files to the specified directories.
4.Click the Build button.
The MIDlet, or MIDlets, if you've added more than one, are compiled and preverified without having to type out long commands in a terminal window. The results of the appear in the message console, ending with Build Complete if no errors were encountered.
5.Select a emulation device from the Device menu, then click Run.
Test the device and note the system and tracing outputs are displayed on the message console.
6.For more testing, change to another device, and click Run again. The Settings buttons allows you to change values as necessary.
The User Guide that comes with the download contains useful information about the application development cycle, MIDlet attributes, the files in each of the installed directories, and device types and portability. It also includes instruction on configuring the emulator, using the Toolkit from the command line, and accessing Toolkit from within Forte for Java Community Edition.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic