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 09:24
Eclipse User
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: Mon Sep 01 03:46:06 EDT 2014

Powered by FUDForum. Page generated in 0.01897 seconds