JavaRanch » Java Forums »
Mobile »
Java Micro Edition
| Author |
J2ME error when building application
|
Kenneth Blane
Greenhorn
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
HERE IS MY CODE
|
 |
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
Greenhorn
Joined: Jun 02, 2009
Posts: 4
|
|
Hi,
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??
CLIENT CODE (MIDLET)
EMAIL SIDE (NORMAL JAVA SE APP) - this is where the errors are being thrown from
|
 |
 |
|
|
subject: J2ME error when building application
|
|
|
|