03-02-2011 07:53 AM
Hello,
I've created a small JAR file with some classes inside, to be shared between BlackBerry and Android platforms (let's say "common.jar").
I've preverified this JAR for BlackBerry and I've added in Eclipse project, and the application is working on Emulator.
The building for device (using a build.xml with blackberry ant tasks) is working, but after installation on the device, when I want to start the application I receive an error:
"Error starting app_name: Module 'common' not found."
So, I have some java files (for BlackBerry platform) and this JAR (for common code).
Can you help me with this BB ant tools? For sure the problem is with these tasks parameters (I've read the documentation), but I cannot handle ![]()
Thank you very much,
Tibi.
03-02-2011 10:09 AM - edited 03-02-2011 10:11 AM
Hello,
Meantime I found a solution: the external preverified JAR file must be included together with the rest of the project files.
If you are using the "import" attribute of rapc, it is not enough: the application just compiles ok, but that external JAR (or its content) is not added in final COD files.
I fixed this stuff in the following way:
<rapc destdir="${dest.dir}" output="${app.name}" jdehome="${jde.home}" jdkhome="${jdk.home}">
<src>
<fileset dir="${app.source}"/>
<fileset file="${external.lib}"/>
</src>
<jdp ....
Maybe you know a better solution...
03-02-2011 11:20 AM
The other solution is to import them and load COD's for those libaries with your main app.
If those JAR's are simply interface stubs, you won't get anything useful by fusing them into the distribution.
05-14-2012 05:49 AM