Click here to Skip to main content
6,822,123 members and growing! (17,770 online)
Email Password   helpLost your password?
Platforms, Frameworks & Libraries » Mobile Development » Applications     Beginner License: The Code Project Open License (CPOL)

Creating Softbank Mobile Phone Applications (J2ME)

By Scott Lupton

How to create S!Applications for Softbank Mobile Phones
Java, Dev
Revision:2 (See All)
Posted:22 Nov 2009
Views:1,301
Bookmarked:3 times
Unedited contribution
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
2 votes for this article.
Popularity: 0.60 Rating: 2.00 out of 5

1
2 votes, 100.0%
2

3

4

5

Introduction 

This article will demonstrate how to build an application for Softbank mobile phones (S!Application) using J2ME. It assumes no prior development experience and should be relatively easy to follow even for beginners.

Development Environment Setup

1. Download and install a Java SE Development Kit (version 1.4.2 or above)
2. Download and install Eclipse (Classic)
3. Download and install the MEXA SDK*
4. Download and install the MEXA SDK Eclipse Plugin*

* Can be downloaded from the S!Application Development Tools page of the Softbank Mobile Creation site (free registration required, site in Japanese only)

Creating the Project 

1. Create an empty MEXA project in Eclipse: 

Select “File” -> “New” -> “Other” -> “MEXA” -> “MEXA Project”

Enter your project name and press “Next.” On the second panel, set the executable path to the MEXA Emulator directory and the build class path to the MEXA library:

Executable path:
\Program Files\SOFTBANK_MEXA_EMULATOR23

Build class path:
\Program Files\SOFTBANK_MEXA_EMULATOR23\lib\stubclasses.zip

Click “Finish” once complete.  

2. Create a new MIDlet class:

Right-click on the project’s “src” folder and select “New” -> “Class”

Enter a class name in the “Name” field, enter “javax.microedition.midlet.MIDlet” for the “Superclass,” and click “Finish.”

3. Configure the jad file: 

Double-click on the project’s “.jad” file and fill out the MIDlet name and vendor fields. Check the “use” check box next to your new class and add an application name.

Adding Source Code

1. Add the two following lines to the top of your source file:  

import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
 

2. Add the following code to the startApp function: 

Form form = new Form("");
form.append("Hello World");
Display.getDisplay(this).setCurrent(form);
 

Running the Application in the Emulator

1. Configure MEXA emulation settings for your project:

Right-click on your top project folder and select “Properties” 

In the “MEXA Emulation Settings” window, set the MEXA Emulator project path to the “.jar” file created by your current project. You can find this path by right-clicking on the jar file in the Eclipse project window and checking the location label.

2. Create a new run configuration:  

Select “Run” -> “Run Configurations”

Double-click on “MEXA Emulator - MEXA” and select your current project in the settings window. Click “Apply” and then “Run” to launch your application in the emulator. 

History  

22 November 2009 - Initial version 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Scott Lupton


Member
I'm an American, bilingual software development engineer based in Tokyo, Japan.
Occupation: Software Developer
Location: Japan Japan

Other popular Mobile Development articles:

  • Writing Your Own GPS Applications: Part 2
    In part two of the series, the author of "GPS.NET" teaches developers how to write GPS applications suitable for the real world by mastering GPS precision concepts. Source code includes a working NMEA interpreter and sample high-precision application in C# and VB.NET.
  • Writing Your Own GPS Applications: Part I
    What is it that GPS applications need to be good enough to use for in-car navigation? Also, how does the process of interpreting GPS data actually work? In this three-part series, I will cover both topics and give you the skills you need to write a commercial-grade GPS application.
  • Learn How to Find GPS Location on Any SmartPhone, and Then Make it Relevant
    A step by step tutorial for getting GPS from any SmartPhone, even without GPS built in, and then making location useful.
  • Windows Mobile, iPhone, Android - Marketplace Comparison
    Detailed comparison between Windows Mobile Marketplace, Apple's iPhone AppStore and Android Market from developer point of view.
  • iPhone UI in Windows Mobile
    It's an interface that works with transparency effects. As a sample I used an interface just like the iPhone one. In this tutorial I am explaining how simple is working with transparency on Windows Mobile.
Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 2 of 2 (Total in Forum: 2) (Refresh)FirstPrevNext
GeneralMy vote of 2 PinmentorTrollslayer14:23 22 Nov '09  
General[My vote of 2] Not enough detail PinmemberRichard MacCutchan5:52 22 Nov '09  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads.

PermaLink | Privacy | Terms of Use
Last Updated: 22 Nov 2009
Editor: Smitha Vijayan
Copyright 2009 by Scott Lupton
Everything else Copyright © CodeProject, 1999-2010
Web18 | Advertise on the Code Project