title: Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: mario.png
body: <p>Im learning libgdx and I tried to call mario.png on my screen, but it didn't work.
  I even tried to set the file path like ("/assets/data/mario.png") and still didn't work.
  What should I do to fix this?</p>
  
  <pre><code>package com.brandong.Tutorial;
  
  import com.badlogic.gdx.ApplicationListener;
  import com.badlogic.gdx.Gdx;
  import com.badlogic.gdx.graphics.GL10;
  import com.badlogic.gdx.graphics.OrthographicCamera;
  import com.badlogic.gdx.graphics.Texture;
  import com.badlogic.gdx.graphics.Texture.TextureFilter;
  import com.badlogic.gdx.graphics.g2d.Sprite;
  import com.badlogic.gdx.graphics.g2d.SpriteBatch;
  import com.badlogic.gdx.graphics.g2d.TextureRegion;
  import com.badlogic.gdx.math.Vector2;
  
  public class Tutorial implements ApplicationListener {
  
  SpriteBatch batch;
      Texture mario;
      Vector2 position;
      @Override
      public void create() {      
          batch = new SpriteBatch();
          mario = new Texture(Gdx.files.internal("mario.png"));
          position = new Vector2(50,50);
      }
  
      @Override
      public void dispose() {
  
      }
  
      @Override
      public void render() {      
          Gdx.gl.glClearColor(1, 1, 1, 1);
          Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
  
  
          batch.begin();
          batch.draw(mario, position.x,position.y);
          batch.end();
  
      }   
  
      @Override
      public void resize(int width, int height) {
      }
  
      @Override
      public void pause() {
      }
  
      @Override
      public void resume() {
      }
  }
  </code></pre>
  
  <p>and the error:</p>
  
  <pre><code>Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: mario.png
      at com.badlogic.gdx.graphics.Pixmap.&lt;init&gt;(Pixmap.java:140)
      at com.badlogic.gdx.graphics.glutils.FileTextureData.prepare(FileTextureData.java:64)
      at com.badlogic.gdx.graphics.Texture.load(Texture.java:142)
      at com.badlogic.gdx.graphics.Texture.&lt;init&gt;(Texture.java:133)
      at com.badlogic.gdx.graphics.Texture.&lt;init&gt;(Texture.java:112)
      at com.badlogic.gdx.graphics.Texture.&lt;init&gt;(Texture.java:104)
      at com.brandong.Tutorial.Tutorial.create(Tutorial.java:22)
      at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:136)
      at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:114)
  Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: mario.png (Internal)
      at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:133)
      at com.badlogic.gdx.files.FileHandle.length(FileHandle.java:563)
      at com.badlogic.gdx.files.FileHandle.readBytes(FileHandle.java:218)
      at com.badlogic.gdx.graphics.Pixmap.&lt;init&gt;(Pixmap.java:137)
      ... 8 more
  </code></pre>