6

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.

potato
  • 4,479
  • 7
  • 42
  • 99

5 Answers5

2

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

ninjahoahong
  • 2,624
  • 22
  • 20
1

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.

Tekkerue
  • 1,497
  • 1
  • 11
  • 17
  • 1
    Users-MacBook-Pro:~ username$ java -version java version "1.8.0_65" Java(TM) SE Runtime Environment (build 1.8.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode) // This is from terminal. I think I got JRE installed – potato Dec 11 '15 at 19:13
0

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.

0

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.

Orlando Herrera
  • 3,481
  • 1
  • 34
  • 44
0

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. :)

mmmartinnn
  • 387
  • 4
  • 16