Using the TiledMapPacker from the terminal?

Anything libgdx related goes here!

Using the TiledMapPacker from the terminal?

Postby rathboma » Mon Jun 18, 2012 2:34 am

Hey guys,

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?
rathboma
 
Posts: 4
Joined: Tue Feb 21, 2012 5:13 pm

Re: Using the TiledMapPacker from the terminal?

Postby rathboma » Mon Jun 18, 2012 2:49 am

For anyone else hitting this issue here is the correct classpath:


Code: Select all
java -cp gdx.jar:gdx-backend-jogl.jar:gdx-natives.jar:gdx-backend-lwjgl:extensions/gdx-tiled-preprocessor.jar:extensions/gdx-tools.jar com.badlogic.gdx.tiledmappacker.TiledMapPacker ~/Pictures/tilesets/ ~/Pictures/tilesetoutput/
rathboma
 
Posts: 4
Joined: Tue Feb 21, 2012 5:13 pm


Return to Libgdx

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 8 guests