Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » Resouce files
Resouce files [message #566219] Tue, 01 May 2007 13:24
Eclipse UserFriend
Originally posted by: agrillage.yahoo.com

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
Previous Topic:CONA.jar
Next Topic:Using Nokia SDK's in Eclipse
Goto Forum:
  


Current Time: Sun Nov 23 11:06:36 GMT 2014

Powered by FUDForum. Page generated in 0.02784 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software