I'm trying to use the TiledMapPacker to pack my Tilemap (Mac OSX, libgdx 0.9.4)
After downloading the latest release, I've tried two things:
- Code: Select all
java -cp *:extensions/* com.badlogic.gdx.tiledmappacker.TiledMapPacker ~/Pictures/tilesets/ ~/Pictures/tilesetoutput/
This yields:
- Code: Select all
Exception in thread "main" java.lang.NoSuchMethodError: com.badlogic.gdx.files.FileHandle.<init>(Ljava/lang/String;Lcom/badlogic/gdx/Files$FileType;)V
at com.badlogic.gdx.backends.jogl.JoglFileHandle.<init>(JoglFileHandle.java:28)
So I thought, ok, this is probably a classpath issue. Thus I tried running:
- Code: Select all
java -cp gdx.jar:gdx-backend-lwjgl:gdx-backend-lwjgl.jar:gdx-backend-jogl.jar:extensions/gdx-tiled-preprocessor.jar:extensions/gdx-tools.jar com.badlogic.gdx.tiledmappacker.TiledMapPacker ~/Pictures/tilesets/ ~/Pictures/tilesetoutput/
But that yields:
- Code: Select all
Exception in thread "main" com.badlogic.gdx.utils.GdxRuntimeException: Creating window failed
...
Caused by: java.lang.reflect.InvocationTargetException
...
Caused by: java.lang.UnsatisfiedLinkError: no gdx in java.library.path
...
Can anyone point me the right way? How do most people run this, from eclipse?
