Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 2
Registered: ‎05-14-2009
My Device: Not Specified

Problems adding non-java files to Eclipse Project.

I'm trying to add some sample data ("test.json") to my app, and then load it up with getClass().getResourceAsStream(), but whenever I add the file under the src dir I get the following error:

The project was not built due to "Could not read file: V:\Blackberry\Prototype\src\test.json.". Fix the problem, then try refreshing this project and building it since it may be inconsistent


If I add a java file, there are no problems, but the json file always gives me the same error.


Adding test.txt fails in the same way.


Any help would be very appreciated.


Thank you,