Error in MultipartEntity submission while ant build in odk

Hi!

I am trying to build a executable jar application for ODK client to
download the files from mobile to local system.

I am trying to send HTTP post request with the zip files as a
multipart entity. The execution of zip file give the following error.

: java.lang.NoClassDefFoundError: org/apache/http/entity/mime/content/
ContentBody...

if I am running a standalone application, the HTTP post request works
fine. But an ant build of a swing class calling the HTTP post request
gives the error. I tried to include the required jars too.

Does anyone has encountered something similar.

regards
Arindam

arindam,

this sounds like a java problem with your setup. post on stackoverflow
and you'll likely get a better response.

also, odk briefcase and kobo sync do what you are describing. maybe
take a look at those.

http://code.google.com/p/opendatakit/source/browse?repo=briefcase
http://code.google.com/p/kobo/source/list?repo=postproc

yaw

ยทยทยท On Tue, Dec 20, 2011 at 21:04, Arindam wrote: > Hi! > > I am trying to build a executable jar application for ODK client to > download the files from mobile to local system. > > I am trying to send HTTP post request with the zip files as a > multipart entity. The execution of zip file give the following error. > > : java.lang.NoClassDefFoundError: org/apache/http/entity/mime/content/ > ContentBody... > > if I am running a standalone application, the HTTP post request works > fine. But an ant build of a swing class calling the HTTP post request > gives the error. I tried to include the required jars too. > > Does anyone has encountered something similar. > > regards > Arindam