- 02-20-2004, 01:13 PM #1Junior Member
- Location
- Eastern Europe, Romania
- Posts
- 10
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?
› See More: Unable to create applications on 3510i.Forever New!
- 02-21-2004, 01:44 AM #2
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.
What you lookin' here for ehhh?
- 02-21-2004, 02:57 PM #3Junior Member
- Location
- Eastern Europe, Romania
- Posts
- 10
AS I TOLD YOU BEFORE, THE APPLICATION RUNS ON 3510i emulator!
Forever New!
- 02-24-2004, 04:53 AM #4Junior Member
- Location
- Patras, Greece
- Posts
- 29
Re: Unable to create applications on 3510i.
Originally posted by SKIL
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?
Try to change it & tell us...
gpalouk.
- 04-05-2004, 05:08 AM #5Junior Member
- Location
- Eastern Europe, Romania
- Posts
- 10
I tried changing MIDP-2.0 into MIDP-1.0 and it gives me the same error!
WHAT CAN I DO?Forever New!
- 04-07-2004, 07:05 PM #6Junior Member
- Posts
- 29
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?
- 04-08-2004, 07:55 AM #7Junior Member
- Location
- Eastern Europe, Romania
- Posts
- 10
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!Forever New!
- 04-08-2004, 06:25 PM #8Junior Member
- Posts
- 29
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.
Тур до Львова: кав'ярні, екскурсії, визначн
in Chit Chat