当前位置:网站首页>双击.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
边栏推荐
- Interesting prime number problem hdu5750
- Mariadb的半同步复制
- The concept of meta universe is popular. Is virtual real estate worth investing
- 无线网怎么用手机验证码登录解决方案
- 学习笔记:Unity CustomSRP-12-HDR
- Summary of MySQL knowledge points
- 7-4 is it too fat (10 points) PTA
- SQL Server检索SQL和用户信息的需求
- Anti crawler (0): are you still climbing naked with selenium? You're being watched! Crack webdriver anti crawler
- Master-slave replication of MariaDB database
猜你喜欢

Redis persistence

CPT 104_TTL 09

Unique primary key ID of tidb sub table -- solution to failure of sequence and Gorm to obtain primary key

Laravel database

Basic use of sqlyog

开源规则引擎——ice:致力于解决灵活繁复的硬编码问题

Graphics. Fromimage reports an error "graphics object cannot be created from an image that has an indexed pixel..."

One month countdown, pgconf What are the highlights of the latest outlook of asia2021 Asian Conference?

2021-10-08

Flip coin (Blue Bridge Cup)
随机推荐
Summary of R & D technology
MFC实现资源单独Dll实现
Flip coin (Blue Bridge Cup)
The 2021 IT industry project management survey report was released!
Open source rule engine - Ice: dedicated to solving flexible and complex hard coding problems
如何在Word中添加漂亮的代码块 | 很全的方法整理和比较
Basic knowledge of vegetable chicken database
Three of three JS (webgl) simple sorting of rotation attribute function, and a simple case of rotating around the axis based on this
Locks and transactions in MySQL
Interview summary
即将毕业的大学生找技术开发工作的焦虑根源
了解 DevOps,必读这十本书!
FileReader API file operation
2021-11-08
WTL self drawn control library (cqscheckcomboxbox)
何时适合进行自动化测试?(下)
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)
Musk and twitter storm drama
Redis lost key and bigkey
日志简介和构建web应用