BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
Ivanov Offline
Thumbs Must Hurt
 
Posts: 174
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Default getResourceAsStream and eclipse - 07-03-2008, 03:51 AM

How should the path to the embedded file look like for opening it with Class.getResourceAsStream()?

in JDE it is relative to the project file. In eclipse it seems to be different. If I put a file I want to open in the same package as the class that wants to access it using getResourceAsStream("config.xml") I have in the console the message

FRIDG: could not find com/test/util/flow/config.xml

It's strange that there is no "src" before the the path as all files are in the src subfolder relative to the project file...

Could that be the reason for the failure?

P.S. I'm using the eclipse Plugin from RIM

Last edited by Ivanov : 07-03-2008 at 03:53 AM.
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

Reply


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-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1