I started using libGDX recently and started making a Pong clone to start with it (its how i get used to/learn new frameworks).
Every time I try to create a SpriteBatch object like so:
SpriteBatch batch = new SpriteBatch();
I get this bizzare compiler error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.badlogic.gdx.utils.BufferUtils.newDisposableByteBuffer(I)Ljava/nio/ByteBuffer;
at com.badlogic.gdx.utils.BufferUtils.newDisposableByteBuffer(Native Method)
at com.badlogic.gdx.utils.BufferUtils.newUnsafeByteBuffer(BufferUtils.java:517)
at com.badlogic.gdx.graphics.glutils.VertexArray.<init>(VertexArray.java:59)
at com.badlogic.gdx.graphics.glutils.VertexArray.<init>(VertexArray.java:50)
at com.badlogic.gdx.graphics.Mesh.<init>(Mesh.java:145)
at com.badlogic.gdx.graphics.g2d.SpriteBatch.<init>(SpriteBatch.java:93)
at com.badlogic.gdx.graphics.g2d.SpriteBatch.<init>(SpriteBatch.java:72)
at com.********.**********.GameMaster.<init>(GameMaster.java:18)
at com.********.**********.Main.main(Main.java:18)
I cant seem to figure out what the issue is. I've included all necessary .jar files to the build path too.