How can I handle 3rd party dependencies in a .jad
file? Is it possible to bundle a .jar
? Do you need to unpack it and include the .class
files?
相关问题
- X-I.: command not found, and failed to build certa
- Maven - Access properties on parent pom from a chi
- TFS 2010 : Use the label name in build number form
- How to make background of BrowserField transparent
- Can't compile Artifactory 7.10.2
相关文章
- Handling ffmpeg library interface change when upgr
- Build errors of missing packages in Visual Studio
- Forcing a TFS2010 workflow build to FAIL instead o
- Use Eclipse classpath variable to replace absolute
- How to add String parameter to Jenkins with option
- How to pass a build number within the MultiJob plu
- intellij build jar artifact containing gradle depe
- React/RCTBridgeDelegate.h' file not found
JAR files can NOT be combined with COD files. You first need to convert these JAR files to COD files (and you should sign them as well). If additional JAR files are supposed to be used as library COD files you need to use the
-library
switch instead of-midlet
for the rapc.exe compiler.Once you got your COD files you need to refer in your JAD file to all of the COD files including file sizes. The COD file might look like:
Can't speak too much for J2ME generically but for BlackBerry you can turn compiled .jar files into .cod files (the BlackBerry binary file format - basically an optimized .jar) and include those along with your application .cod files. You will have to list the additional .cod files in the .jad.
This link from the BlackBerry knowledgebase should help.
If library is not a BlackBerry COD file but a plain MIDP 2.0 JAR file then what you have to do to bundle that with your application is to do the following using the Eclipse JDE plugin:
The above method works for me but has two problems:
See approach of working with kXML2 open source library:
Ahmad Ferdous Bin Alam - How to Import kxml jar File to Your Project
Slashdev - BlackBerry Development with Ant & Eclipse
UPDATE:Tutorial: How To Use 3rd Party Libraries in your Applications