使用exe4j将java文件打成exe文件运行详细教程,The JVM found at JAVA_HOME is damaged问题解决

技术标签: exe4j  java  exe

1.前言 在上一篇文章中,我介绍了如何将java文件打包成jar包,再用bat批处理命令在dos窗口中运行,但是这对于把程序交给那些电脑小白来说,肯定还远远不够 ,所以干脆将它转成exe文件来直接双击运行吧. 在进行这篇教程之前,大家可以先去看看上一篇文章. 如果实在偷懒的话,也可以直接用maven打成jar包(没有测试不知道是否可行) 一步一步教你将java代码打成jar包用bat批处理命令运行...

用Eclipse将写好的项目打包成jar包,后续再打成exe程序

、首先选择要打包文件,导出JAR file next 这样存储路径里面,就可以找到刚才打成jar文件了 二、jar打成exe程序 此步骤程序exe4j如果没有可以百度现在个 至此打成exe结束,们选择位置就可以看到了 注明:如果java项目没有安装jre电脑上面运行,那么需要将jdkjre起打进去

windows上部署springboot项目(jar包)

1.idea项目打成jar 2.target文件夹下找到jar文件 2.右键jar选中show in explorer打开jar所在文件夹 3.打开cmd进入jar所在目录,选中目录栏输入cmd回车即可 4.输入java -jar 项目文件名.jar 5.针对第4懒人模式----bat批处理文件 *jar目录下创建个.bat结尾文件 *,编辑文件: @echo off

java项目打成可运行jar包

夹,(本项目还需将二进制文件w*x文件同拷贝过来),便可双击jar文件运行程序。 6、优化项:添加批处理文件设置些全局变量,如JAVA_HOME、CLASSPATH、PATH等;创建快捷方式,并修改...java项目打包成可执行exe文件,参见:http://mp.blog.csdn.net/postedit/79196443 、项目结构如下: 相关说明: 1:client包下为自己所写

关于使用EXE4J_JAVA_HOME报错的问题

 问题描述 使用EXE4j作为jar打成exe工具,发现在移植到其他电脑时候,报个找不到EXE4J_JAVA_HOME错误,但是jdk已经安装,也没有什么问题解决方案 其实还是EXE4J生成工具本身,在打包过程个:jdk是否允许子版本,选项,在生成exe时候选中,只选中那个框框。

Java调用shell脚本的一些问题

代码IDEA打成jar,然后上传到Linux 注意:上传后需要修改文件权限:chmod a+x xxx.jar 运行jar命令 java -cp xxx.jar 名.类名


智能推荐

启动Hadoop时 报错JAVA_HOME is not set and could not be found

问题出现原因是Hadoop无法获取到jdk 解决方法: 去Hadoop中/etc/hadoop/hadoop-env.sh里进行设置 这里的配置由原先的export JAVA_HOME=${JAVA_HOME} 改为export JAVA_HOME=/opt/install/jdk1.8 (应当使用绝对路径。) 与你在环境变量中配置的jdk路径一致即可...

启动hadoop,报错Error JAVA_HOME is not set and could not be found

报如错误:JAVA_HOME is not set and could not be found,可能是因为JAVA_HOME环境没配置正确,还有一种情况是即使各结点都正确地配置了JAVA_HOME,但在集群环境下还是报该错误,解决方法是显示地重新声明一遍JAVA_HOME         1、检查JAVA_HOME是否配置正确...

hadoop启动过程中出现Error: JAVA_HOME is not set and could not be found.解决办法

安装好hadoop后,启动终端和启动hadoop时出现Error: JAVA_HOME is not set and could not be found.错误 需要修改hadoop目录下的/etc/hadoop/hadoop-env.sh文件。 用vim hadoop-env.sh打开文件 找到JAVA_HOME=${JAVA-HOME}修改为自己的java安装路径,保存就可以了 现在启动had...

Cocos的“Please make sure java is installed and JAVA_HOME is in your environment”问题解决方案

Cocos的“Please make sure java is installed and JAVA_HOME is in your environment”问题解决方案 本文默认 NDK,Android SDK,ANT 三者都已部署,且配置没有任何问题 JDK下载地址: https://www.oracle.com/java/technologies/javase-dow...

启动 Tomcat 遇到 Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 问题,已解决

原创博文,欢迎转载,转载时请务必附上博文链接,感谢您的尊重。 一、问题场景: 我的软件和环境: 操作系统:Windows 10 Tomcat版本:Tomcat 9.0.44(非安装版) Java环境:JDK 1.8.0 需要下载 Tomcat 和 Java ,请转博文:https://jiming.blog.csdn.net/article/details/104713763 Tomca...

猜你喜欢

安装tomcat报错Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of the

今天win10安装tomcat突然就报错了,做个小记 The JRE_HOME environment variable is not defined correctly This environment variable is needed to run this program 搜索进行了如下配置,tamcat bin目录下setclasspath.bat文件进行配置(Windows环境在se...

tomcat启动时错误Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of th

安装好tomcat之后,发现除了使用sudo命令之外,执行命令   ./startup.sh 就会出现以下错误: Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run th...

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模式 ,所以已经知道在同一网段, 实际环境中呢也是肯定要使用相同网段进行渗透测试的,...

问答精选

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...

相关问题

相关文章

热门文章

推荐文章

相关标签

推荐问答