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

Used Energy Saving Electronic Ballast Model HPS/MH600W working well
$39.0
Used Energy Saving Electronic Ballast Model HPS/MH600W working well pictureBallast 70w 120-277v metal halied
$19.95
Ballast 70w 120-277v metal halied pictureAdvance Transformer Co. Ballast R-140-1-TP Rapid Start Lamp 120 Volts 60 Hz AO
$14.99
Advance Transformer Co. Ballast R-140-1-TP Rapid Start Lamp 120 Volts 60 Hz AO pictureSunlite 40175-SU SB454HOMV 4 Lamp F54 T5 High Output Linear Fluorescent Ballast
$47.45
Sunlite 40175-SU SB454HOMV 4 Lamp F54 T5 High Output Linear Fluorescent Ballast pictureLot of 3 - NEW Ballast - Osram Electronic Ballast - 50308C Qtp-2X96T12/Unv-Is
$74.99
Lot of 3 - NEW Ballast - Osram Electronic Ballast -  50308C  Qtp-2X96T12/Unv-Is  picture






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