08-28-2012 04:35 AM - edited 08-28-2012 04:45 AM
hello,
I am working with BlackBerry plugin for Eclipse and I need to import external Jar to my app. I followed some instructions I found -- preverified jar and imported it as referenced library. So now I have this
Now ... how can I import classes from this jar in my app? If I try
import my_lib.*;
it doesn't find anything.
Thanks for any help.
08-28-2012 04:41 AM
Hi ,
just go to your build path of the project and configure your build path in that configuration just add the external jar in to the library and export the jar.
Hope it will work!
08-28-2012 04:42 AM
08-28-2012 04:51 AM
shivam284: Yes, I have already done that. Now I need to use classes from the Jar.
simon_hain: Sorry for the "insert", of course there should be import. But still, "the import my_lib cannot be resolved."
08-28-2012 05:16 AM
08-28-2012 05:17 AM
expand jar file, then use package name which you declaired in jar like in above example "net.rim.blackberry.api.bbm.platform" is package in jar.
for import classes and interface inside the package use:
import net.rim.blackberry.api.bbm.platform.*;
thanks,
08-28-2012 05:54 AM - edited 08-28-2012 05:54 AM
Thanks for replies. But the problem is ... classes are generated by Cibyl and they are not part of any package (they are in "default package"). Does it mean I can't use them?

08-28-2012 06:03 AM
08-28-2012 06:23 AM - edited 08-28-2012 06:23 AM
I can't
If I try to import any class, it says "Symbol cannot be resolved".
08-28-2012 06:42 AM - edited 08-28-2012 10:29 AM
Hi Cainer,
i think you are using like import Cibyl;
if you want to import Cibyl class use syntax: import Cibyl.java;
thanks,