java.lang.ClassNotFoundException:

I am trying to run a simple HelloMIDlet example as the steps specified in "MIDP Setup Expalined" JDC article. It' compiles and preverfies fine. When I try to run from the command line as specified I get the error message java.lang.ClassNotFoundException: HelloMIDlet . I've seen the other topic and it's responses and yes it is a valid class and jad which I tried executing both ways. I even tried running the demos that came with the MIDP profile and came to the same result, so I'm assuming the examples from sun are valid. I'm only using the MIDP download and CLDC download, so I am doing everything at the command line. Any help would be greatly appreciated.

Thanks

David Corsaut

[714 byte] By [dcorsaut] at [2007-9-26 12:04:08]
# 1

So, the HelloMIDlet class seems to be missing in your jar archive (the one obtained after a compile, a preverify and a jar command). I'd be you, I'd check:

1. did you declare the fully qualified name of your HelloMIDlet class in your jad file, not forgetting the prefix package it belongs to? Is the MIDlet-Jar-Size property of your jad file correct? Does the MIDlet-Jar-URL jad property properly point to the jar archive?

2. did you check that the HelloMIDlet is present in your jar archive?

I have no other hint to propose. Hope this may help...

edouard.mercier at 2007-7-2 2:29:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Hello, thanks for trying. I actualy found it later to be a backslash in the wrong place. Those the other errors you mentioned have appeared in other places.ThanksDavid
dcorsaut at 2007-7-2 2:29:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
Hi David,I am facing the same problem as yours.How did u exactly solve the problem ?regs,Lee
leecja at 2007-7-2 2:29:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
It's simple. run the MIDP with option '-classpath .', then the MIDlet name.I've found that even you put '.'(current dir) in your classpath the MIDlet still won't look at the current dir.
tak18c at 2007-7-2 2:29:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
I cannot believe it was so simple. I have been stuck on this problem for a day. Thanks a lot.
myGod at 2007-7-2 2:29:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6
think you very much!I have same problem but I find the method luckly!think you again!:)
tigeadfish at 2007-7-2 2:29:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...