Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Regular Visitor
Posts: 1
Registered: ‎04-20-2010
My Device: Storm 9500
My Carrier: Personal

Package using 4.7.0 using rapc.exe



I am having some issues trying to package a very simple program that uses images. This program works perfect under Api 5.0 and Simulator (9700), but when I compiled and package with API  4.7.0 (my target platform) images are not included inside the package. I notice that the size of the generated files are smaller than they have to. Also, when I debug the code in the simulator (9500)  it return a null  here....


public class ResourceManager {

	private static ResourceManager instance = new ResourceManager();
	public static ResourceManager getInstance(){
		return instance;
	public ResourceManager(){	

	private Hashtable resources = new Hashtable();
	public Bitmap getBitmapResource(String uri)
			return (Bitmap)resources.get(uri);
		} else {
			Bitmap bmp = Bitmap.getBitmapResource(uri);
			if(bmp != null){
				resources.put(uri, bmp);
			return bmp;



this is the command line I am using to package...


rapc.exe -alias=resources.jar codename=deliverables\Standard\4.7.0\reclamos deliverables\Standard\4.7.0\reclamos.rapc -sourceroot=C:\work\dev\workspace\reclamos\src;C:\work\dev\workspace\reclamos\res;resource.jar -import=\lib\net_rim_api.jar C:\work\dev\workspace\reclamos\bin




- The rapc process works without errors. 

- I already tried to copy  all the  images to the \bin,  the \src  and the \res directory, with no success.


Would really appreciate you help!, thanks in advance...