开发者

how to create a java jar file with only subfolder's content?

Now I am in a temp folder in my dos console. there is a classes folder inside the temp folder. that classes folder contains all my classes started with 开发者_运维知识库com.companyName.app folder structure. I use "jar cf project.jar classes\*" to create the jar file but it starts with classes folder. I don't want the classes folder. The top level folder I expected is the com. How can do it? or I have to cd to classes folder to do that? thanks,


jar cf project.jar -C classes .

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜