Missing Jar URL in the jad descriptor

I am a newbie to J2ME. I'm trying to implement some tutorial on the web and I'm running into this problem.

C:\Projects\Java\J2ME\Part1\output>%WTK_HOME%/bin/emulator -Xdescriptor DateTimeApp.jad

com.sun.kvem.midletsuite.InvalidJadException: Reason = 18

Missing Jar URL in the jad descriptor

My DateTimeApp.jad content is like follows:

MIDlet-1: DateTimeApp, , com.simpaq.j2me.DateTimeApp

MIDlet-Name: DateTimeApp

MIDlet-Version: 1.0.0

MIDlet-Vendor: Vikram Goyal

MIDlet-Jar-URL: DateTimeApp.jar

MIDlet-Jar-Size: 1245

MicroEdition-Profile: MIDP-2.0

MicroEdition-Configuration: CLDC-1.1

The DateTimeApp.jar file is present in the output directory where I'm executing the emulator command. What am I doing wrong here? Any help will be greatly appreciated.

Thanks.

Gabsaga

[871 byte] By [gtataa] at [2007-10-3 4:38:16]
# 1

I figured out what the problem was. My class was in the package com.simpaq.jse like such:

package com.simpaq.j2me;

// necessary imports

public class DateTimeApp extends MIDlet

{

// methods

}

All I did was remove the line:

package com.simpaq.j2me;

and re-compiled and ran and it worked.

Does this mean that MIDlets don't allow classes to be in packages?

Thanks.

Gabsaga

gtataa at 2007-7-14 22:42:05 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Never mind, figured out what I was doing wrong.Gabsaga
gtataa at 2007-7-14 22:42:05 > top of Java-index,Java Mobility Forums,Java ME Technologies...