• Post Reply Bookmark Topic Watch Topic
  • New Topic

Digital Authentication  RSS feed

Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I have read the article about Authentication in MIDP (http://developers.sun.com/techtopics/mobility/midp/articles/security3/).
Hence, I try the application sample to get a feel of how authenticaton work.

But, I hit the error "ClassNotFoundException" in the client side, which I run ANT 1.6.4 to lauch the client application in J2ME Wireless Toolkit 2.2 and this error also being hitted if I use J2ME Wireless Toolkit 1.0.3

My test environment:
J2ME Wireless Toolkit 2.2
Apache Tomcat 5.0

Error in Command Prompt:
C:\WTK22\apps\MyProject\build>ant run
Buildfile: build.xml
[exec] Running with storage root DefaultColorPhone
[exec] Unable to create MIDlet CertificateMidlet
[exec] java.lang.ClassNotFoundException: CertificateMidlet
[exec] at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
[exec] at com.sun.midp.midlet.Selector.run(+22)
[exec] Execution completed.
[exec] 742368 bytecodes executed
[exec] 22 thread switches
[exec] 741 classes in the system (including system classes)
[exec] 3801 dynamic objects allocated (109584 bytes)
[exec] 1 garbage collections (0 bytes collected)

Error in Emulator:
After click launch button, the following error appeared:
Exception: java.lang.ClassNotFoundException:

Any guideline is really appreciated.
Thanks in advance.

Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is probably a problem with the Ant build file - you are not passing correctly the parameters for the WTK emulator and it cannot find the MIDlet class.
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!