File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes J2ME error when building application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2ME error when building application" Watch "J2ME error when building application" New topic

J2ME error when building application

Kenneth Blane

Joined: Jun 02, 2009
Posts: 4
Hi all,

I'm a new developer - straight out of college, and not entirely sure on what i am doing

Please could you help me with the following error - i am suppose to write an app which selects an image from the phone directory(that works) and then email this image to a pre-specified email address. When i build my application it gives me the following error:

Error preverifying class java.lang.Class
VERIFIER ERROR java/lang/Class.newInstance0()Ljava/lang/Object;:
Illegal type in constant pool

Do you need to see the code?

Thank you in advance


Peter Miklosko
Ranch Hand

Joined: May 26, 2009
Posts: 76
Any chance of you making mistake as the guy in this post

If not, we will need to see your code
Kenneth Blane

Joined: Jun 02, 2009
Posts: 4

I have advanced with this app - i have put the clientside in the MIDlet but have moved the email section to a normal java app. i have imported the java app into the me app and when i build the apps i get the following error:

Error preverifying class a
VERIFIER ERROR a.a(Ljava/lang/String;I)Z:
Cannot find class javax/mail/Message

Here is my code - i have sifted through it line by line and commented out the lines that cause the error to be thrown.

Please could you advise me on what to do??


EMAIL SIDE (NORMAL JAVA SE APP) - this is where the errors are being thrown from

I agree. Here's the link:
subject: J2ME error when building application
Similar Threads
Current focused item in the form
my .jar didn't run well
java.lang.NullPointerException - canot find why
How to write to a file?
file browse J2ME