Unable to create applications on 3510i.

  • Thread starter Thread starter SKIL
  • Start date Start date
S

SKIL

Guest
Hello!

I am a medium-level programmer. I have downloaded all the stuff needed to make & compile a little program for my 3510i. As I make this program:

Welcome.java

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class Welcome extends MIDlet implements CommandListener
{
private Display display;
private Form frmain;
private Command cmdExit;

public Welcome ()
{
display=Display.getDisplay(this);
cmdExit=new Command ("Iesire",Command.EXIT,1);
frmain=new Form("Prima Aplicatie");
frmain.addCommand(cmdExit);
frmain.setCommandListener(this);
}

public void startApp()
{
display.setCurrent(frmain);
}

public void pauseApp()
{

}

public void destroyApp(boolean unconditional)
{

}

public void commandAction(Command c, Displayable s)
{
if (c==cmdExit)
{
destroyApp(false);
notifyDestroyed();
}
}
}

Compiling this, gets a Welcome.Jad and Welcome.Jar. They both work OK on the 3510i computer emulator from NOKIA. But when i upload them to my mobile phone, when i open the applications, it gives me the error: APPLICATION NOT SUPPORTED!

I can upload ALREADY MADE APPLICATIONS AND GAMES, but what can be wrong?

Welcome.Jad looks like this:

MIDlet-1: Welcome
MIDlet-Description: Hello World
MIDlet-Jar-Size: 1330
MIDlet-Jar-URL: Welcome.jar
MIDlet-Name: Test
MIDlet-Vendor: Me
MIDlet-Version: 2.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-2.0

The JAR size is correct.

Can you please help me?
 
I am not a programmer myself, but I can suggest you that first you download the Series 30 SDK and emulator, and try running the proggies there. It would save you a lot of trouble, of uploading and then frustration.
 
I tried changing MIDP-2.0 into MIDP-1.0 and it gives me the same error!

WHAT CAN I DO?
 
You might have used MIDP 2.0 libraries or methods in your code. I do not know for sure because I have not used Java to program for phones before.

The emulators aren't 100% accurate, unfortunately. Do you have the latest version?
 
I have the latest version. The application is a SIMPLE hello world (sourcecode is listed in my first post).

I cannot understand!

Alternatively, if you can't tell me what's wrong, can you please tell me the command line for compiling an application and creating its jad file?

Thank you!
 
I don't know why it isn't working on your phone.

This probably isn't the best forum to be asking programming questions!

Have you tried the forums at http://www.forum.nokia.com? You must already have an account there to download the 3510i SDK, so it should be easy enough to post this question there.
 
Back
Top