The JVM found at JAVA_HOME is damaged.Please reinstall or define EXE4J_JAVA_HOME to point to an inst

一、介绍

       exe4j是一个很棒的工具,可以把jar包打包成exe进行运行。他可以把jre环境和打包的exe进行集成,使得打包后的exe应用程序可以在没有安装java的机器上运行(前提是要把exe和jre一起捆绑)。

二、问题及解决方法

       使用exe4j集成jre打包exe时,运行exe应用程序时,发现报错信息:

         技术分享

  错误提示:JAVA虚拟机发现JAVA_HOME损坏,需要重装或者定义EXE4J的JAVA_HOME配置指向一个32位的JDK或者JRE。

  原因是EXE4J在打包JAR文件成EXE文件的过程中,自动生成支持32位JVM的可执行文件。

  解决方法:

  1.如果你的JVM是64位的,在配置可执行EXE文件的过程中需要配置生成64位的,一定要勾上下面的设置;这种情况一般是因为电脑是64位系统,

     所以安装了64位的jre,打包EXE时需要安装64位的EXE4J软件,打包生成的可执行文件也应该是64位的。

  2.如果你的JVM是32位的,在配置可执行EXE文件的过程中不需要配置生成64位的,即不需要勾上下面的设置;这种情况一般是因为电脑是32位系统,

          所以安装了32位的jre,打包EXE时需要安装32位的EXE4J软件,打包生成的可执行文件也应该是32位的。

  技术分享

  技术分享

 

来源:网络


智能推荐

运行mvn -v后出现 Error: JAVA_HOME is set to an invalid directory

安装完maven,运行mvn -v,提示:  Error: JAVA_HOME is set to an invalid directory. 在百度上看多篇文章说,环境变量该怎么配?是不是多;,等,未解决我的问题。 参考文章  https://blog.csdn.net/theNightSoCold/article/details/70739088&nbs...

Error: JAVA_HOME is set to an invalid directory.-解决办法

安装好Maven运行mvn -v之后出现错误: Error: JAVA_HOME is set to an invalid directory. JAVA_HOME = “D:\Others\java\jdk1.8.0_181\bin” Please set the JAVA_HOME variable in your environment to match the lo...

ERROR: JAVA_HOME is set to an invalid directory: D:\jdk8\bin

在用jenkins 集成allure 插件做测试报告时,在jinkins控制台看到如下错误:        从机jdk配置   本机环境变量配置:   原来是 环境变量没有D:\jdk8\bin配置   配置成D:\JDK8试试,果然执行成功。        ...

Maven安装提示ERROR: JAVA_HOME is set to an invalid directory.

1、官网下载maven:http://maven.apache.org/ 2、将其安装在安装在E盘下:    3、配置环境变量:    (1)新建系统变量:       (2)配置path环境变量:            (3)一步步点击“确定&r...

安装allure报错提示JAVA_HOME is set to an invalid directory解决办法

1.下载allure.zip 2.解压并放到任意目录 3.在环境变量path中加入 allure的目录,加到\bin这一层 4.安装pip install allure-pytest  到前四步没有出现任何问题 结果在运行代码过程中出现如下错误 于是我在命令行输入allure --version 报错了 查阅资料得知安装allure的前提:java和javac都已经安装,所以先检查一下,...

猜你喜欢

配置CXF环境出错ERROR: Set JAVA_HOME to the path where the JDK (6.0 or higher) is installed解决方式

环境变量里面没有 JAVA_HOME变量,找到你得jdk安装目录,创建环境变量添加进去就好了。我的jdk安装在C:\Program Files\Java\jdk1.8.0_05,环境变量这样配置。 最后在window+r 输入  wsdl2java -h出现正常  希望对大家有帮助...

Unity3D之Mecanim动画系统学习笔记(六):使用脚本控制动画

控制人物动画播放 这里我重新弄了一个简单的场景和新的Animator Controller来作为示例。 下面先看看Animator Controller的配置: 人物在站立状态只能进入走路,走路只能进入奔跑或返回站立,奔跑只能进入跳跃或返回走路,跳跃则只能返回奔跑。 参数方面为两个参数: Float类型的moveSpeed; Trigger类型的Jump; 连线直接的转换条件为:moveSpeed...

华为云数据湖工厂服务DLF

1. DLF服务说明 参考官网:https://support.huaweicloud.com/productdesc-dlf/dlf_07_001.html ,数据湖工厂服务(Data Lake Factory,简称DLF)是华为云大数据重要的平台产品,它可管理多种大数据服务,提供一站式的大数据开发环境、全托管的大数据调度能力,极大降低用户使用大数据的门槛,帮助用户快速构建大数据处理中心。 使用...

关于小白学习渗透Billu_box过程

** Billu_box渗透测试 ** 1.1实验环境 靶机:Billu_box IP地址:192.168.237.141 测试机:Kali,IP地址:192.168.237.141; 这里呢先查看自己本身的ip, 1.2实验流程 信息收集——主机发现、端口扫描 由于安装的虚拟机使用的NET模式 ,所以已经知道在同一网段, 实际环境中呢也是肯定要使用相同网段进行渗透测试的,...

Web性能测试工具jmeter的使用

原文地址:http://www.cnblogs.com/0201zcr/p/5046193.html jmeter 性能测试工具的使用(Web性能测试) 1、下载   http://pan.baidu.com/s/1o7p18Ye   该软件不用安装,直接解压打开即可使用。 2、使用   这里就在win下进行,图形界面较为方便   在目录apache-jmeter-2.13\bin 下可以见到一个...

问答精选

Sql Query With Select and IF

here is my table description: Table Name : Orders Columns : ID, NO, Quantity, Base, Code First my query should check the value of Code, if value of Code is 'B' then OUTPUT VALUE should be Code+Base if...

EmberJS and web components: extend an existing HTML tag within an initializer (is it possible?)

Edit: this issue only seems to be in the .hbs rendering as this code does work when the extended web component is inserted in the top level index.html of the EmberJS project Edit 2: However, when I pu...

I can't find the error in my socket python program

I was following a socket tutorial and suddenly there was a bug in my code that I couldn't understand or find Can anyone help me find the bug? I referenced with the tutorial code and it doesn't work. T...

Datatables - fixedHeader with scrollX

I am trying to use Datatables with fixedheader (v3) as well as enable horizontal scrolling. Attached is the fiddle http://jsfiddle.net/xF8hZ/344/ . When scrolling the fixedheader width doesn't align w...

meego cannot play mp3 file

I tried to implement SoundEffect from QtMobilityKit in QML to play music file in Meego Harmattan. I found that it can only play .wav file. is there any possible way to play .mp3 file in meego? This on...

相关问题

相关文章

热门文章

推荐文章

相关标签

推荐问答