eclipse - Blackberry extrenal library problem (module not found) -


i using eclipse. when add external jar (import it.sauronsoftware.ftp4j.*;) seems ok, reference external jar right clicking project , properties. when instantiate ftpclient opbject , run in simulator "module not found".

somebody on different forum suggested creating new library , adding jar it, reference library dependency in main bb project. downside library must installed along compiled bb app , dont want this. there way import third party libs eclipse blackberry plugin make work?

thanks

my solution (for eclipse plugin):

  1. generate/get *.jar file.
  2. preverify *.jar file using preverify tool (it's in jde_dir\components\bin):

    preverify -classpath {jde.home}\lib\net_rim_api.jar {output.file} -d {output.dir}

above command produce preverified *.jar in: {output.dir}\output\

in eclipse:

  1. add preverified *.jar build path: (right click on project -> libraries -> add jars)
  2. export *.jar: (right click on project -> libraries ->order , export -> check *.jar)
  3. run application, should work now

you can write ant script automate process

cheers, m


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -