I can add the tmx and tilesets in a .jar file?
Sure you can add them to a .jar. Whether you can actually load the map from it depends on your map loader.
libtiled-java currently won’t load such maps because it will look for referenced files outside of the .jar, so if you’re using that you’ll need to make some modifications.
Is it just i move the for tmx into the jar, i move the tilesets and change the directory of the same in tmx?
No, it’s not just that. As I answered earlier, you’ll need to change the map loading code so that it will actually load things from the .jar file. Java has a
getResourceAsStream function for this.
OK, thank you