|
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.
|