当前位置:网站首页>双击.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
边栏推荐
- Use of uniapp native plug-ins
- FileReader API file operation
- Interesting prime number problem hdu5750
- To understand Devops, you must read these ten books!
- Cloud computing and cloud native architecture design of openshift
- Some experience in using MySQL / tidb database [slowly updating...]
- 狼叔来找翻译人员了--plato--持续翻译中.....
- node中的redis使用--ioredis
- varnish入门
- Streamexecutionenvironment of Flink source code
猜你喜欢

改进DevSecOps框架的 5 大关键技术

領域驅動模型DDD(三)——使用Saga管理事務

2021-11-01

使用zerotier让异地设备组局域网

Three of three JS (webgl) simple sorting of rotation attribute function, and a simple case of rotating around the axis based on this

Three of three JS (webgl) is simple to draw lines / arcs according to points (based on linegeometry / line2 / linematerial, draw two arc segments based on the center of the circle)

Traversal of tree

数字化转型失败,有哪些原因?

PIP free export with path (@ file: / / /) notes

One month countdown, pgconf What are the highlights of the latest outlook of asia2021 Asian Conference?
随机推荐
Locks and transactions in MySQL
At pgconf Asia Chinese technology forum, listen to Tencent cloud experts' in-depth understanding of database technology
Grpc long connection keepalive
学习笔记:Unity CustomSRP-11-Post Processing---Bloom
无线网怎么用手机验证码登录解决方案
Study notes: unity customsrp-10-point and spot shadows
Source code analysis of how to use jump table in redis
领域驱动模型DDD(三)——使用Saga管理事务
[untitled] kimpei kdboxpro's cool running lantern coexists with beauty and strength
Domain driven model DDD (III) -- using saga to manage transactions
Three 之 three.js (webgl)模型的删除/场景的清空/内存的释放 的简单整理
Cloud computing and cloud native architecture design of openshift
2021 年 25 大 DevOps 工具(下)
One month countdown, pgconf What are the highlights of the latest outlook of asia2021 Asian Conference?
Blender程序化地形制作
2021-11-08
Redis persistence
2021-11-01
Use of uniapp native plug-ins
Implementation of resnet-34 CNN with kears