0
点赞
收藏
分享

微信扫一扫

JVM笔记2--垃圾收集算法

科牛 2024-05-08 阅读 35

JPACKAGE 简单 打包JAR 可能需要配置依赖包,未知

JLINK + Wix + JPACKAGE 模块化 生成exe安装向导(打包成功,安装时报错2203,需要关闭杀毒软件,安装执行成功)

EXE4J 未试

launch4j 执行报错

launch4j maven 只生成exe

  <plugin>
                        <groupId>com.akathist.maven.plugins.launch4j</groupId>
                        <artifactId>launch4j-maven-plugin</artifactId>
                        <version>2.5.0</version>
                        <executions>
                            <execution>
                                <id>l4j-clui</id>
                                <phase>package</phase>
                                <goals><goal>launch4j</goal></goals>
                                <configuration>
                                    <!--运行方式,控制台-->
                                    <headerType>gui</headerType>

                                    <!--输出的exe文件-->
<!--                                    <outfile>${project.build.directory}/WeiKeDownload.exe</outfile>-->

                                    <!--输出的jar-->
<!--                                    <jar>${project.build.directory}/${artifactId}-${version}.jar</jar>-->
<!--                                    <jar>${project.build.directory}/${artifactId}-${version}-jar-with-dependencies.jar</jar>-->

                                    <!--错误标题-->
                                    <errTitle>error</errTitle>
                                    <classPath>
                                        <!--换成自己的主类-->
                                        <mainClass>com.example.demo.Main</mainClass>
                                        <addDependencies>true</addDependencies>
                                        <preCp>anything</preCp>
                                    </classPath>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
举报

相关推荐

0 条评论