views:

258

answers:

3

Hey I got some sources files for midlet application. How can I compile these to a midlet that I can run on my mobile.

+1  A: 

Download Netbeans

Create new project and add your sources to it

Compile and you are done.

Simple guide to Netbeans for Midlets

Konstantinos
A: 

I'm going from memory here, it's been a while since I wrote any mobile java.

Firstly, you need to get the J2ME libraries - that's Java2 Mobile Edition*. These contain a subset of the java libraries in addition to some mobile specific packages.

Your application must then implement a class that extends the MIDlet class. The MIDlet class is the interface between the mobile and your application.

Compile and preverify the code, create a manifest and package the whole lot into a JAR file.

Getting the JAR file onto the mobile is very dependant on the handset you're using - not all phone allow you to download applications from a PC, some require special cables.

Here's a site the goes into more detail.

Skizz

  • It seems there's been a update to the name since I was writing midlets.
Skizz
+1  A: 
Emre
And then how do you then get that onto a mobile?
Tom Hawtin - tackline
You can send the jar file to your mobile phone by bluetooth connection, I usually do that way.
Emre