Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

Preverifier error in Sun Java Wireless Toolkit

Thread view: 
Saaji - 23 Feb 2006 12:12 GMT
Hi ppl,
   I'm using an SDK provided by my client and building a MIDlet
application which does ApiCalls on this SDK. I copied all the jar files
from the SDK and put it into my lib folder of my MIDlet project so that
it could add it to the classpath during build. But when I build it
shows the following error:

Error preverifying class com.myClient.sdk.attributes.AttributesMaster

   VERIFIER ERROR
com/myClient/sdk/attributes/AttributesMaster.addErrorElements(Lorg/w3c/dom/Document;Lorg/w3c/dom/Node;[Lcom/myClient/sdk/attributes/model/ErrorSet;)Lorg/w3c/dom/Node;:

Cannot find class org/w3c/dom/Node

If I don't use that particular jar, and the rest of the jars, it
shows this error:

Error preverifying class com.myClient.sdk.call.AddDisputeCall

   java/lang/NoClassDefFoundError: com/myClient/sdk/ApiCall

I read that this is because I might be using a class library created
for the J2SE platform and hence it doesn't work for the J2ME Wireless
toolkit which uses a limited JVM and APIs. Is there any way I can merge
it into my MIDlet so that it will use it?

P.S: I'm comparatively new to J2ME :( Also i'm using the Sun Java
Wireless Toolkit 2.3 Beta. Please help...

Thanks in advance,
Sajida Abdul Salam
im - 23 Feb 2006 16:53 GMT
>     VERIFIER ERROR
> com/myClient/sdk/attributes/AttributesMaster.addErrorElements(Lorg/w3c/dom/Document;Lorg/w3c/dom/Node;[Lcom/myClient/sdk/attributes/model/ErrorSet;)Lorg/w3c/dom/Node;:
>
> Cannot find class org/w3c/dom/Node

The SDK uses the org.w3c.dom.Node interface:
http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/Node.html

In order to use this SDK you will need a library with a J2ME
implementation of this package. Your client that provided the SDK most
probably already has it, or maybe the SDK was not intended for J2ME -
org.w3c.dom is part of the standard J2SE libraries.

Imre
Saaji - 24 Feb 2006 07:06 GMT
Thanks for the info imre.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.