11-01-2008 07:23 PM
I have not been able to figure out how to configure the JDE plug-in for Eclipse to use a static library (i.e. a jar file that I compile against and include directly into the final application jar/cod).
This can easily be done in the standalone JDE by simply adding the jar file to the project.
I’ve have tried the following three approaches with the JDE plug-in for Eclipse:
Please let me know if anyone has a solution!
If no solution exists I'd suggest to the plugin guys the approach taken by the Eclipse ME (now Eclipse MTJ) project. They use the "exported" setting in the "Build Path/Order and Export dialog" to configure how the complier does this. If a library (or even a project) is marked as "exported" then the contents of that library get included in the final jar of the project, otherwise it simply compiles against it. This solution has worked well (at least for me) in standard J2ME development.
11-14-2008 08:48 AM
01-07-2009 01:15 PM - edited 01-09-2009 04:22 PM
There is a work around for using this in the current beta release.
1. In your Eclipse workspace create a new BlackBerry Project (File > New > Other> BlackBerry > BlackBerry Project) named myLib (you can change the name).
2. Right-click on myLibin the workspace and go to Properties > BlackBerry Project Properties > Application (tab) and change the Project type drop-down to Library.
3. Close Eclipse.
4. Navigate to the myLibproject folder within the Eclipse workspace.
5. Copy your library.jar file to the src folder of this project (filename can vary).
6. Open the myLib.jdp project file from within the project folder into a text editor and add the following lines:
between the lines ExcludeFromBuildAll=0 and HaveAlxImports=0
7. Open Eclipse to this workspace and run Project > Build Active BlackBerry Configuration, this will create a myLib.jar file in the myLib project directory.
8. Import the whole library project you have just created into your application’s workspace. Deactivate your application project, build the BlackBerry Configuration for the library project.
9. Activate your application’s project and then add this library project, to the project’s application build path.
10.Build the BlackBerry Configuration for your application’s project.
01-20-2010 12:20 PM
Cant this be done using eclipse/pulsar, export option in build path dialog ?