简体   繁体   English

使用Launch4j,我应该什么时候包装罐子?

[英]Using Launch4j, when should I Wrap the Jar?

I'm new to Launch4j. 我是Launch4j的新手。 By default, it "wraps" the jar, but there is a checkbox that reads "Dont't wrap the jar, launch only". 默认情况下,它“包装”jar,但是有一个复选框,上面写着“不要包装jar,只启动”。

When should I check this box? 我什么时候应该看看这个盒子? When should I not check this box? 我该什么时候不能查看此框?

The only difference is that when you check this option, the jar file is not packaged inside the generated executable file, and it needs the jar file next to it. 唯一的区别是,当您选中此选项时,jar文件未打包在生成的可执行文件中,并且它需要旁边的jar文件。

So you should not check the box if you want to hide the jar to your users and have a single executable file, and you should check it if you are willing to keep the executable file and the jar file separated (if you want to update the jar file without re-generating the executable for instance). 因此,如果要将jar隐藏到用户并拥有单个可执行文件,则不应选中此框,如果您愿意将可执行文件和jar文件分开(如果要更新例如,jar文件没有重新生成可执行文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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