I have several libraries that I want to import into my project. All Jar files that I created were created using Eclipse and then pre-checked using the command line tool.
Now I work in BlackBerry JDE (not Eclipse), and I added Jar files to my main project. It did not initially compile, complaining about a stack card error. This is what prompted me to pre-develop cans.
Now I can import classes from Jars, and it compiles just fine, but as soon as I try to run the application on the simulator and access the class in Jar, it gives out MissingNativeError.
I tried to select each Jar file in my own library project in the workspace and set up project links correctly, but nothing changed. The little one that I found in this error online does not help. One person who solved this problem says they did it by changing the library to a CDLC application, but if I do, then I can't even depend on it.
What is the CORRECT way to work to create a code library that can be included in other projects, besides including the source files in each project? Does this use COD files? Is there any other way to make it work?
Note . JAR files are located in another directory, somewhere close to the project or workspace, although this should not be a problem. When I compile the project, the libraries are displayed in the simulator directory, and the jar files contain all the necessary classes from what I see.
source
share