java - UnsatisfiedLinkError Libgdx Desktop -


i running issues libgdx on desktop. keep getting following error when trying launch application:

exception in thread "main" java.lang.unsatisfiedlinkerror: com.badlogic.gdx.utils.bufferutils.newdisposablebytebuffer(i)ljava/nio/bytebuffer; @ com.badlogic.gdx.utils.bufferutils.newdisposablebytebuffer(native method) @ com.badlogic.gdx.utils.bufferutils.newunsafebytebuffer(bufferutils.java:288) @ com.badlogic.gdx.graphics.glutils.vertexarray.<init>(vertexarray.java:62) @ com.badlogic.gdx.graphics.glutils.vertexarray.<init>(vertexarray.java:53) @ com.badlogic.gdx.graphics.mesh.<init>(mesh.java:148) @ com.badlogic.gdx.graphics.g2d.spritebatch.<init>(spritebatch.java:173) @ com.badlogic.gdx.graphics.g2d.spritebatch.<init>(spritebatch.java:142) @ com.badlogic.gdx.graphics.g2d.spritebatch.<init>(spritebatch.java:121) @ com.badlogic.gdx.graphics.g2d.spritebatch.<init>(spritebatch.java:115) 

i have following libraries added project:

  • gdx.jar
  • gdx-sources.jar
  • gdx-natives.jar
  • gdx-backend-lwjgl.jar
  • gdx-backend-lwjgl-natives.jar

am missing something?

i have searched high , low, find android , tells me add .so libs arm folders project, doesn't make sense me desktop project on wintel platform.

i'd advise setup projects this gui. should provide valid setup platforms. may use latest nightly builds , check if problem still occurs. problem might native libraries not match other jars.

another problem might instantiate spritebatch (or else internally uses spritebatch) (looked bit in stacktrace). example statically this:

private static spritebatch batch = new spritebatch(); 

this won't work, since libgdx wasn't setup correctly @ point in time. instead, create such things in create/show methods of game.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -