title: Blackberry runtime error: FRIDG: could not find img/logo.png
body: <p>I recently had to prepare a BB app for submission to the BB app world, but I have an issue when running the app. Basically, I've created a new Blackberry project, using the "use existing source" option to point to the sources I've got from the developer that actually developed this app. Building the application just works, but when I want to start the app it immediately quits with a NullPointerException.</p>
  
  <p>When debugging the application, the debugger halts at the following line:</p>
  
  <pre><code>Bitmap bitmaplogo = EncodedImage.getEncodedImageResource("img/logo.png").getBitmap();
  </code></pre>
  
  <p>With the following error:</p>
  
  <pre><code>[0.0] FRIDG: could not find img/logo.png
  </code></pre>
  
  <p>I do have an img/logo.png, which is located in /res/img/logo.png. Attempts of specifying the path as "res/img/logo.png", "/res/img/logo.png", "logo.png" have not worked. I personally don't think that's the issue here, this exact code base works perfectly for another developer. I'm more inclined to start looking into tooling, JDK/JRE versions, project settings. Maybe resource files should be explicitly included in the build?</p>
  
  <p>Some other information:</p>
  
  <ul>
  <li>My Blackberry project uses Blackberry JRE 5.0.0 as the JRE system library</li>
  <li>I have Oracle Java SDK 6 Update 26 installed</li>
  <li>Using Blackberry Java Plugin for Eclipse 1.3.0</li>
  <li>On Windows XP SP2</li>
  </ul>
  
  <p>Has anyone encountered the same issue before?</p>