[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[News.eclipse.dsdp.mtj] Re: Resouce files

Files from the res directory should be copied directly into the jar file in the deployed directory. Try deleting this directory and see if the file is in the newly created jar.

kevin horowitz
Andrew Grillage wrote:
I am trying to load a resource file thus:

InputStream in = this.getClass().getResourceAsStream("test.xml");

I have tried putting the file in the project root and I have tried putting it in the res folder. It never seems to get packed in the jar. My in is always null. What do I need to do?

Andrew