BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-19-2008, 12:53 AM   #1
antoxu
New Member
 
Join Date: May 2008
Model: 8800
PIN: N/A
Carrier: Orange
Posts: 2
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
antoxu
New Member
 
Join Date: May 2008
Model: 8800
PIN: N/A
Carrier: Orange
Posts: 2
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Intel SE7520JR2  Server Board FOR XEON PROCESSOR W/ BOX picture

Intel SE7520JR2 Server Board FOR XEON PROCESSOR W/ BOX

$150.00



Intel SE7500WV2 SCSI Server Board FOR XEON PROCESSOR W/ BOX picture

Intel SE7500WV2 SCSI Server Board FOR XEON PROCESSOR W/ BOX

$150.00



Intel SE7501WV2 SCSI Server Board FOR XEON PROCESSOR W/ BOX picture

Intel SE7501WV2 SCSI Server Board FOR XEON PROCESSOR W/ BOX

$150.00



INTEL XEON E5 2520V2 E5 2620V2 SR1AN 2.10 GHZ Core Processor 3401A832 picture

INTEL XEON E5 2520V2 E5 2620V2 SR1AN 2.10 GHZ Core Processor 3401A832

$12.00



NETWORK INSTRUMENT GIGASTOR- 2U (2X) XEON E5-2630- 64 GB PC3 RAM picture

NETWORK INSTRUMENT GIGASTOR- 2U (2X) XEON E5-2630- 64 GB PC3 RAM

$293.99



Trenton 92-506313-XXX W/ 2x Intel Xeon Processors & 4GB DDR2 RAM picture

Trenton 92-506313-XXX W/ 2x Intel Xeon Processors & 4GB DDR2 RAM

$110.00







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