• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

verifier error...

 
Timothy Sam
Ranch Hand
Posts: 751
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys! I'm newbie to J2ME. I'm trying out the example found here...

http://today.java.net/pub/a/today/2005/02/09/j2me1.html?page=2

and when I compile, I get this error...



E:\WTK22\article>..\bin\preverify.exe -classpath ..\lib\cldcapi11.jar;\lib\midpa
pi20.jar com.j2me.part1.DateTimeApp
Error preverifying class java.lang.Class
VERIFIER ERROR java/lang/Class.getResourceAsStream(Ljava/lang/String Ljava/
io/InputStream;:
Cannot find class com/sun/midp/io/ResourceInputStream


I can't determine the problem... Help please... Thanks!

 
Eduardo Marques
Ranch Hand
Posts: 231
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like a CLASSPATH problem ...

If you're using WTK jar files are in the "lib" subdir of WTK.
If you compile inside WTK I believe the CLASSPATH settings should be
automatic.
 
Richard Dunne
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eduardo Marques:
Looks like a CLASSPATH problem ...

If you're using WTK jar files are in the "lib" subdir of WTK.
If you compile inside WTK I believe the CLASSPATH settings should be
automatic.


Hi, I am doing the same tutorial, and was wondering if you can remember off-hand how you resolved this as I have the exact same problem you had. The DateTimeApp.java compiled fine, but the preverification did not work.
This was my effort:
C:\WTK2.5.2\com>c:\WTK2.5.2\bin\preverify.exe -classpath .;c:WTK2.5.2\lib\midpapi20.jar;c:\WTK2.5.2\lib\cldcapi11.jarcom.j2me.part1.DateTimeApp -d bin classes
Error preverifying class java.lang.Class
VERIFIER ERROR java/lang/Class.getResourceAsStream(Ljava/lang/String Ljava/
io/InputStream;:
Cannot find class com/sun/midp/io/ResourceInputStream

If you can shed any light on this that would be great!
Thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic