title: Loading an Image in Java/Gdx
body: <p>I have been developing an android game for a while now and i have this problem. Let's take this example code</p>
  
  <pre><code>class game {
  
  
     private Texture image;
  
     public game()
     {
         image = new Texture(Gdx.files.internal("image.png");     
     }
  }
  </code></pre>
  
  <p>If i write my code like this everything is fine, the image loads properly and the game runs smoothly.</p>
  
  <p>The problems start when i try to create a folder inside my assets folder and load the image from there.</p>
  
  <p>For example</p>
  
  <pre><code>class game {
  
  
     private Texture image;
  
     public game()
     {
         image = new Texture(Gdx.files.internal("newfolder/image.png");     
     }
  }
  </code></pre>
  
  <p>When i do this and compile it i get no erros inside Eclipse and everything is fine. But when i try to export the project into a runnable deskop jar or as an android application, the game start for a second, shows a black screen then it stops. On android it doesn't even start. I believe it is not able to locate and load the image and throws an exception.</p>
  
  <p>Any idea why this is happening and what am I doing wrong?</p>