aspose file tools*
The moose likes Java Micro Edition and the fly likes verifier error... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "verifier error..." Watch "verifier error..." New topic
Author

verifier error...

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
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!



SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
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.


Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
Richard Dunne
Greenhorn

Joined: Jan 04, 2008
Posts: 1
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: verifier error...