Java launch4j exe找不到jre路径

Java launch4j exe找不到jre路径,java,launch4j,Java,Launch4j,我想与JRE一起发布我的exe。我已正确配置JRE路径,但在尝试运行exe时找不到JRE 文件夹缝合结构: |- jre7(copied from my windows installation of jre) |-bin |-lib |- jretest.exe (the output exe file) Install4j xml: ..... <jre> <path>/jre7</path> <bundledJ

我想与JRE一起发布我的exe。我已正确配置JRE路径,但在尝试运行exe时找不到JRE

文件夹缝合结构:

|- jre7(copied from my windows installation of jre)
    |-bin
    |-lib
|- jretest.exe (the output exe file)
Install4j xml:

.....
  <jre>
    <path>/jre7</path>
    <bundledJre64Bit>false</bundledJre64Bit>
    <bundledJreAsFallback>false</bundledJreAsFallback>
    <minVersion></minVersion>
    <maxVersion></maxVersion>
    <jdkPreference>preferJre</jdkPreference>
    <runtimeBits>64/32</runtimeBits>
  </jre>
.....
。。。。。
/jre7
假的
假的
首选
64/32
.....

我缺少什么?

我解决了这个问题。我没有设置“Min JRE version”属性,如果您没有设置该属性,则Launch4j exe无法找到JRE。

为什么要先创建一个exe?请在启动JRE之前将JRE设置为HOMEexe@Stultuske抱歉,我不明白你想说什么?@gaurav JRE_HOME settings在本例中不需要,因为我与JRE捆绑。启动4J处理jre_主页和其他事情。@Dreamcatcher我的问题是:你需要exe做什么?它不提供额外的功能或安全性。exe只能用于少数(有限的)任务,而.jar不能用于这些任务。