当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Export generated class files and resources equivalent command line command

问题描述:

I'am working on a python script , which involves few steps of creating a jar file.

However when i run the following lines of code i get the jar file created, having .java files and not .class files .

subprocess.call(['jar', 'cvf', 'process.jar','C:/my data/temp/process/src'])

Is there any way to get the jar file created with .class files similar to Export generated class files and resources checkbox in export jar dialog in eclipse .

Thanks

网友答案:

Make sure where is your *.class files located, I assume it is in bin directory or something:

subprocess.call(['jar', 'cvf', 'process.jar','C:/my data/temp/process/bin'])
分享给朋友:
您可能感兴趣的文章:
随机阅读: