用exe4j软件打包java程序,运行exe文件,报错:please reinstall or define exe4j_java_home to point to an installed

用exe4j软件打包java程序,运行exe文件,报错如下:

the jvm found at .\.\jre7 is damaged.please reinstall or define exe4j_java_home to point to an installed 32-bit jdk or jre

the jvm could not be started.the maximum heap size(-xmx) might be too large or an antivirus or firewall tool could block the execution.

解决办法:

需要重新定义EXE4J_JAVA_HOME的路径,指向一个32位的jdk或者jre,

我当时用的是64位jdk,所以运行报错!
32位的jdk可以通用,64位的就不行,所以打包基本都是32位的

你可能感兴趣的:(exe4j)