potato
potato

Reputation: 4589

Texture Packer won't run

I downloaded texture packer here https://code.google.com/p/libgdx-texturepacker-gui/downloads/detail?name=gdx-texturepacker-3.2.0.zip&can=2&q=

When I run the .jar file it just shuts down before even displaying the gui. Is anyone experiencing a similar problem? I am running OSX El Capitan.

Upvotes: 6

Views: 2782

Answers (5)

ninjahoahong
ninjahoahong

Reputation: 2654

The project is quite old so you can try it's successor: gdx-texture-packer-gui.

[The] project is a successor of Aurelien Ribon's project with whole new GUI and features.

You can download the tool here: https://github.com/crashinvaders/gdx-texture-packer-gui/releases

Upvotes: 2

mmmartinnn
mmmartinnn

Reputation: 407

For Mac I downloaded the free version of https://www.codeandweb.com/texturepacker/download

This saves as .txt rather than .atlas for some reason.

After adding the animation I got errors in batch.draw ... casting to TextureRegion fixed that.

As always, I have no idea if this will cause problems later but there you go. Looks good so far. :)

Upvotes: 0

Orlando Herrera
Orlando Herrera

Reputation: 3531

I have the same problem. Using Windows 7 I have to do this:


  1. Go to your java directory and copy your java path

C:\Program Files\Java\jdk1.8.0_40\bin

  1. Right click on my computer,
  2. Click properties
  3. Go to "Advanced system settings" click ,
  4. Click on Environment variables.
  5. Go to System variables section, and you will find an entry called path.
  6. Double click on path
  7. Add a semicolon (;) to the end of that line
  8. After the semicolon paste your path previously copied: C:\Program Files\Java\jdk1.8.0_40\bin
  9. Apply

It must be enough. Your file should run at this point. Double click it and go to the end, put a semicolon and paste your path, apply and ok. It should run now.

Upvotes: 0

Fatih ÇAKIR
Fatih ÇAKIR

Reputation: 36

Try this: Create a txt file and change its extension to ".bat". Right click to file and select modify. Copy this into file: "java -jar "C:\Users\fat2019\Desktop\gdx-texturepacker-3.2.0\gdx-texturepacker.jar" Change path to your own where gdx-texturepacker.jar file is. Then save and close. Double click file.

edit: this is for windows.

Upvotes: 0

Tekkerue
Tekkerue

Reputation: 1517

Do you have the Java runtime environment installed on your computer or just the Java development kit? I don't use the texture packer, but I had a similar problem with the Android SDK manager (it shut down before displaying the GUI) on a new computer where I had only installed the Java JDK. After installing the JRE then it worked fine.

Upvotes: 1

Related Questions