I have downloaded ksoap2-android-assembly-2.5.4-jar-with-dependencies which was downloaded as zip file.
When I add it to my project I get java.lang.NoClassDefFoundError. How can I add It as a jar file?
10x & have a good weekend
I really recommend that you look into maven, and use maven to get ksoap2. It's a bit of work getting maven set up, but well worth it!
Turns out external jars such as
ksoap2-android-assembly-2.6.2-jar-with-dependencies.jar
to be put under /libs folder so Eclipse ADT automatically adds your jars to the buildpath of your application. It was a buildpath missing defined class error after all.. I hope this will help you, too!
Have you unzipped it into some directory? If so, RightClick on project name, click properties, Java Build Path, Add External Jar assuming you are using Eclipse
java -jar jarfilename
...... (this is used when your 'executable' is in the jarfile
but what you probably want is for the jarfile to be in your classpath
java -classpath jarfilename
......
- or -
java -cp jarfilename
change extension from zip to jar you downloaded the file and changed the extension when you "saved to" location
Follow the download instruction on the wiki and it will work. Really follow then though. Right click on View Raw File. More at