[英]Require a 32-bit JRE when run an EXE
I build an EXE from my Maven project with Launch4j, which is written with jdk1.8.0_172 64-bit
. 我从我的Maven项目使用Launch4j构建了一个EXE,该文件是用jdk1.8.0_172 64-bit
编写的。 But when I tried to launch the EXE file from CMD or Git bash, it says 但是当我尝试从CMD或Git bash启动EXE文件时,它说
This application requires a Java Runtime Environment 1.8.0 (32-bit) 此应用程序需要Java Runtime Environment 1.8.0(32位)
Do you have any idea why it happens and what I should do to resolve this problem? 您是否知道为什么会发生这种情况以及我应该如何解决该问题?
Make sure to check the value of this property in pom: 确保在pom中检查此属性的值:
<plugin>
<artifactId>launch4j-maven-plugin</artifactId>
<executions>
<execution>
<configuration>
<jre>
<bundledJre64Bit>true</bundledJre64Bit>
<runtimeBits>64</runtimeBits>
</jre>
</configuration>
</execution>
</executions>
</plugin>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.