当前位置:网站首页>双击.jar包无法运行解决方法
双击.jar包无法运行解决方法
2022-04-23 05:21:00 【Tajang】
我自己是通过探索出来的方法解决的,网上的方法适合普通问题
网络流传方法
那种-jar
和run.bat
的就是曲解了问题意思,问题不是如何运行,而是如何双击jar包就可以直接运行。
普通小问题就是修改注册表,将java路径写进去后面加个 %1
,如图
网上还有的是修改javaw.exe\shell\open\command
下的值,可是我本地javaw.exe下面没有项,这里就不再尝试
解决方法
我右键jar包 “打开方式→选择其他应用”,出现下图
点击那个Java(TM) Platform SE binary
无效,我选择更多应用,进目录里选中java.exe也不行
上面有个继续使用此应用吸引了我的注意
那里的路径是我之前java的路径,看着很碍眼,就打算删除,进入注册表Ctrl+F
,搜索上面的路径,如图
看注册表路径,这个部分控制的是jar自动打开的东西,路径并不是我现在的Java路径,那就修改为我现在的Java路径,并以-jar的方式打开
值修改为:"C:\Java\bin\java.exe" -jar "%1"
如图
此时双击可以直接打开jar包,并且右键打开方式→选择其他应用,也没有那个错误的显示了
版权声明
本文为[Tajang]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_45619909/article/details/124334705
边栏推荐
- 2021-09-23
- Logrus set log format and output function name
- Graphics.FromImage报错“Graphics object cannot be created from an image that has an indexed pixel ...”
- egg中的cors和proxy(づ ̄3 ̄)づ╭~踩坑填坑的过程~ToT~
- Three 之 three.js (webgl)简单实现根据点绘制线/弧线(基于LineGeometry / Line2 / LineMaterial,绘制两点基于圆心的弧线段)
- My old programmer's perception of the dangers and opportunities of the times?
- 【openh264】cmake: msopenh264-static
- SQL Server检索SQL和用户信息的需求
- 点击添加按钮--出现一个框框(类似于添加学习经历-本科-研究生)
- Nacos source code startup error report solution
猜你喜欢
随机推荐
Graphics.FromImage报错“Graphics object cannot be created from an image that has an indexed pixel ...”
Kubectl command automatic replenishment
Basic theory of Flink
2021-10-12
使用zerotier让异地设备组局域网
C test calls the paddlesharp module to recognize pictures and words
Low code and no code considerations
configmap
MFC实现资源单独Dll实现
史上最强egg框架的error处理机制
TSlint注释忽略错误和RESTful理解
JSP-----JSP简介
Detailed explanation of concurrent topics
Redis data type usage scenario
《2021年IT行业项目管理调查报告》重磅发布!
Unique primary key ID of tidb sub table -- solution to failure of sequence and Gorm to obtain primary key
npm升级后问题,慌得一批
狼叔来找翻译人员了--plato--持续翻译中.....
egg中的多进程模型--egg文档搬运工
Some experience in using MySQL / tidb database [slowly updating...]