tags:

views:

36

answers:

2

This is how I currently compile my code:

jar cvf client.jar tileGen.class tileGen$GamePanel.class Player.class

Well let's say I have a folder called \line_tile| and i want to put in that jar file all of the png files... like this. \line_tile*.png maybe? So in the Jar file it would be my tileGen, tileGen$GamePnale, and player classes then a new folder called \line_tile\ and inside THAT ... I would have my tile images.... maybe you can help?

I don't know...

+1  A: 
jar cvf client.jar tileGen.class tileGen$GamePanel.class Player.class line_tile/*.png
Maurice Perry
+2  A: 

You can do this:

jar cvf client.jar tileGen.class tileGen$GamePanel.class Player.class line_tile

This will include everything in a "line_tile" directory in your jar.

It's easiest to build the jar if all the files you want are in the location on the drive where you want them. You want the line_tile directory right where you are building your jar.

Starkey