Using Netbeans 5.0 RC 1.
New'd off an Mobile Application.
Imported org.ksoap2.* ;
Gave the following error AFTER a clean-looking compile:
Error preverifying class org.kobjects.xmlrpc.Driver
VERIFIER ERROR
org/kobjects/xmlrpc/Driver.main([Ljava/lang/String;)V:
Cannot find class java/io/FileReader
C:\netbeans_projects\StockQuote\nbproject\build-impl.xml:268:
Preverification failed with error code 1.
BUILD FAILED (total time: 3 seconds)
Seems the xmlrpc.* stuff wasn't compliant with
something or something????
OK, the problem was that the kobjects jar file included
some non-J2ME-compatible code.
or, at the very least, code that wouldn't verify.
So, the simple answer is to pull that code out of the
jar file !
Basically, all I did was to edit the ksoap's build.xml
and add the following:
<jar jarfile="dist/ksoap2-j2me-full.jar">
<fileset dir="tmpclasses">
------> added following line --->
<exclude name="**/xmlrpc/*.class"/>
<include name="**/*.class"/>
<include name="META-INF/**"/>
</fileset>
</jar>
Then, just rebuild the ksoap jar file. And then used
that NEW jar file in netbeans and all was fine.
?????
Why??
Logged In: YES
user_id=1282699
If you post this bug over to the new ksoap2.sf.net project
page it will be dealt with. I am making some new targets in
the build file that will have a couple different flavours of
the jar being built. Thank you for reporting this problem.
I f you want the leanest version of the jar, try only
including these classes:
<include name="**/IsoDate*" />
<include name="**/Base64*" />
<include name="**/XmlSerializer*" />
<include name="**/XmlPullParser*" />
<include name="**/KXmlParser*" />
<include name="**/KXmlSerializer*" />
<include name="**/Node*" />
<include name="**/Element*" />
Cheers
James.