BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-19-2008, 12:53 AM   #1 (permalink)
New Member
 
Join Date: May 2008
Model: 8800
PIN: N/A
Carrier: Orange
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to archieve images in Jar files

Please Login to Remove!

Hello All,

These days, I always suffering the pain of finding a way to pack image files into jar file with original code layout instead of put all images under the root of jar file with rapc.exe. I'm currently using eclipse BB plugin, it uses rapc.exe to compile .java files and generate jar package. But in the generated jar file, all images are moved to the root fir of the jar file. I also encountered the same problem when I was using BlackBerry Ant Tool, so I believe it is a common issues. I wonder if anyone can tell me how to resolve this issue.

Thanks,
Anto
Offline  
Old 05-19-2008, 01:22 AM   #2 (permalink)
New Member
 
Join Date: May 2008
Model: 8800
PIN: N/A
Carrier: Orange
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Since I'm new to BB, I don't know if there is any options of rapc.exe can use used to avoid rapc move all images under source dir to the root of jar file. For example:

My original code layout are:

com/anto/ui/a.java
com/anto/ui/b.java
com/anto/ui/c.java
com/anto/ui/d.java

res/a.png
res/b.png
res/c.png

the generated jar file's layout are
com
META-INFO
a.png
b.png
c.png

my expecting jar layout is
com
META-INF
res

Can anybody help on it?

Anto
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.