开发者

Command Prompt - jar files

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


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.


jar cvf client.jar tileGen.class tileGen$GamePanel.class Player.class line_tile/*.png
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜