06-08-2012 04:43 PM
I'm working in Eclipse. I'm attempting to attach a file as a resource to my project.
To test everything out I built a small test project, dropped the file into the resource folder and built. In my code I was able to grab a handle to the file by calling this.getclass().getResourceAsStream("/test.bin")
This all worked fine so I tried moving the resource file into my larger project and using the same line to open it and its not found. When I'm connected over debugger I see on the console.out the error 'FRIDG: could not find test.bin'
I also opened up the cod file in a hex editor and I can see that the resource is not in there, where as when I open my test project's COD i can see the resource file is in there.
What am I doing wrong? Why does it work in my test project but not in my real project?
11-15-2012 01:40 AM
I'm also getting this issue, I created a new folder called lib in my project and pointed the resource to the jar file, called resty, however when running the app, a pop up appears and says,
What is the correct way of doing this? I'm using the same technique as when doing a android app.
11-15-2012 03:31 AM
11-15-2012 04:20 AM