简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM