Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
Posts: 3
Registered: ‎03-12-2010
My Device: 8000
My Carrier: developer

KSoap2 impossible to add in JDE Eclipse Plugin

I tried anything i could to install the KSoap2 Library in my Eclipse project.. i read every previous thread and link about it... but i still can't resolve the problem!!

 

I understood that i must "preverify" every jar i need to add on my buildpath....... i did and the result was that "ksoap2-j2me-core-prev-2.1.2.jar" couldn't be verified!! 

 

in log error inside the output folder there was this error : 

Error: No such file or directory
jar -cfm "output\ksoap2-j2me-core-prev-2.1.2.jar" tmp30597\\META-INF\MANIFEST.MF -C tmp30597 . 

 

Error: No such file or directory jar -cfm "output\ksoap2-j2me-core-prev-2.1.2.jar" tmp30597\\META-INF\MANIFEST.MF -C tmp30597 . 

 

What does it means?? why?? How can i add KSoap2 to be imported when i launch the simulator in Eclipse JDE plugin ?? Please help me... i spent days and days without find any solution!! Thanks in advance....

New Contributor
Posts: 3
Registered: ‎03-12-2010
My Device: 8000
My Carrier: developer

Re: KSoap2 impossible to add in JDE Eclipse Plugin

Perhaps should i leave the Eclipse plugin and use only the JDE alone?

New Contributor
Posts: 8
Registered: ‎03-11-2010
My Device: Bold 8300
My Carrier: Digilte

Re: KSoap2 impossible to add in JDE Eclipse Plugin

i have used the eclipse plugina and JDE. in both application appear the same error... in must be an error when it make jar package

New Contributor
Posts: 3
Registered: ‎03-12-2010
My Device: 8000
My Carrier: developer

Re: KSoap2 impossible to add in JDE Eclipse Plugin

Then what shoud i do now?? Surrend? Suicide?.... die?

Contributor
Posts: 21
Registered: ‎04-14-2010
My Device: 9700
My Carrier: Vodafone

Re: KSoap2 impossible to add in JDE Eclipse Plugin

Hi riccardomez,

 

I'm hoping you've found a solution to the kSOAP2 issues you've encountered. I'm having trouble with the same thing and would be very grateful for advice.

 

Running the preverify command:

 

C:\Program Files\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.14\compon
ents\bin>preverify -d . -classpath ..\lib\net_rim_api.jar "c:\Documents and Sett
ings\user\testing workspace\KSoapLibrary\lib\ksoap2-j2me-core-prev-2.1
.2.jar"


..snip..


Executing command [jar -cvfm ".\ksoap2-j2me-core-prev-2.1.2.jar" tmp16510\\META-
INF\MANIFEST.MF -C tmp16510 .]
jar -cvfm ".\ksoap2-j2me-core-prev-2.1.2.jar" tmp16510\\META-INF\MANIFEST.MF -C
tmp16510 .
Error: No such file or directory
JAR file creation failed with error -1

 

I am using Eclipse build 20090619-0625 with the BlackBerry plugin 1.1.1.200911111641-15 and BlackBerry Java SDK 5.0.0.14.

 

I have attempted to get kSOAP2 working by following the tutorial provided by craigAgreen (kSOAP2 BB Tutorial) without success. Debugging in the simulator environment outputs the following error messages:


Starting Sample
Module 'Sample' has verification errors.
Error starting Sample: Module 'Sample' has verification errors.

 

If more information is needed by anyone able to advise please let me know.

 

Thanks in advance!

Contributor
Posts: 21
Registered: ‎04-14-2010
My Device: 9700
My Carrier: Vodafone

Re: KSoap2 impossible to add in JDE Eclipse Plugin

Ok, so I have progressed a little further (maybe). I am no longer receiving verification errors.

 

I have renamed the ksoap2-j2me-core-prev-2.1.2.jar In the kSoapLibrary project to the name of the project .jar.

 

So if your library project is kSoapLibrary, the jar file becomes:

 

kSoapLibrary.jar

 

From there, re-add the library to the Java build path and the Order and Export. After I did this the application did not respond with verification errors, however I have a new error message Robot Mad

 

Error starting Sample: Class 'org.ksoap2.transport.HttpTransport' not found.

 

This isn't specific to the HttpTransport class, it will error with the first Class called by my program.

 

I'm attempting to resolve this missing class issue, if anyone knows why this would be happening, or if I'm doing totally the wrong thing please let me know Smiley Happy

Developer
Posts: 587
Registered: ‎01-19-2010
My Device: BOLD 9700 OS5.0.0.x on Rogers Canada
My Carrier: Rogers

Re: KSoap2 impossible to add in JDE Eclipse Plugin

Hey riccardomz,

 

Fun fact: ksoap2-j2me-core-prev-2.1.2.jar is ALREADY preverified (hence the -prev bit). It was created specifically because the standard library cannot be preverified (believe me, I tried). This blog post should help you get it up and running in no time.

 

Craig A Green's Blog - BlackBerry and .NET Web Services

 

Hope that helps,

~Dom

 

P.S. - If you need kSOAP code snippets, let me know. I've got quite a few. I spent a good month working through various web service issues.

----------------------------------------------------------------------------
chown -R us ./base
~J!NX
Contributor
Posts: 21
Registered: ‎04-14-2010
My Device: 9700
My Carrier: Vodafone

Re: KSoap2 impossible to add in JDE Eclipse Plugin

Ok. I have solved my issue and the kSoap2 library is working.

 

I removed the Eclipse installation, downloaded the JDE plugin with Eclipse from BlackBerry, reinstalled and it worked!

 

Hooray.

New Member
Posts: 1
Registered: ‎12-29-2010
My Device: Not Specified

Re: KSoap2 impossible to add in JDE Eclipse Plugging

Can you explain in ill detail ? Please ..

 

I tried using ksoap2.jar but facing same problem with simulator.

 

Please help me ...

New Contributor
Posts: 8
Registered: ‎12-01-2011
My Device: 9800 torch
My Carrier: RIM

Re: KSoap2 impossible to add in JDE Eclipse Plugin

please help me, am getting an error i.e; ksoap2- j2me-core-prev-2.1.2 not found when am running on simulator