BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-12-2009, 09:12 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2009
Location: Bilbao
Model: 8900
PIN: N/A
Carrier: Vodafone
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question eclipse plug-in: add not .java file not works

Please Login to Remove!

hola,

i need to add files to my project that aren't java file (like images or xml).

i create a folder (img) in the src folder and i put my file there.
When i build the project in the bin directory there are all the .class and the xml and image file but when i start the application and i try getResourceAsStrem (xml) or getBitmapResource (img) the application can't find the file.

i see that in the created .jar don't appears the files.

The same code with the same folder structure work on JDE...

I read a lot of posts and i can't understand where is the problem.

Any idea?
Offline  
Old 04-14-2009, 04:55 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2009
Location: Bilbao
Model: 8900
PIN: N/A
Carrier: Vodafone
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

hi, anyone with the same problem?
I try everything but seems impossible.
The only non java file that can include in my project is the icon file...

Any idea?
Offline  
Old 06-11-2009, 08:24 PM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2009
Location: CANADA
Model: 9000
PIN: N/A
Carrier: Rogers
Posts: 64
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

It is strange that you cannot add file to your project.
File (any type) should appear in the File tab in the 'img' folder after you add it.
But you must add it to the project: right click on 'img' folder and then
click 'Add File to img' in context menu.
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.