开发者

Create a jar file from the java code

开发者 https://www.devze.com 2023-02-16 10:30 出处:网络
i want to create a jar file from java program i looked at some examples Java code to create a JAR file but it didnt impressed me as this will not create the proper package structure my original comman

i want to create a jar file from java program i looked at some examples Java code to create a JAR file but it didnt impressed me as this will not create the proper package structure my original command was

jar -cfv formBuilder.jar .\com\accenture\* .\com\wysiwyg\util\XmlUtil.class  .\com\wysiwyg\exception\ApplicationException.class .\com\wysiwyg\constants\*.class .\com\wysiwyg\util\FormBuilderUtill.c开发者_运维技巧lass .\com\wysiwyg\util\SaveFormOnLocalUtil.class .\com\wysiwyg\logger\LogInfo.class  .\com\wysiwyg\factory\Validation.class 

now i want to do the same using java code but without ant, and proper package structures should be created, is this feasible?


Use java.util.jar package for this work.

0

精彩评论

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