适用于最新的macOS Monterey
更新系统后,打开jd-gui报如下错误:
ERROR launching 'JD-GUI'
No suitable Java version found on your system!
This program requires Java 1.8+
Make sure you install the required Java version.
![](https://img-blog.csdnimg.cn/img_convert/6f68d986f1a65cf8b4f4d3cf439a4dc6.png)
解决办法:
1、显示包内容
![](https://img-blog.csdnimg.cn/img_convert/b33b46da0daaca184cfcbef3e9a1013a.png)
2、找到文件universalJavaApplicationStub
,使用文本编辑器打开
![](https://img-blog.csdnimg.cn/img_convert/db5e4e948e854470741b5ea4a374c8a9.png)
3、使用https://raw.githubusercontent.com/tofi86/universalJavaApplicationStub/master/src/universalJavaApplicationStub 中的内容替换
- 保存后,重新打开即可
推测: No suitable Java version found on your system!
This program requires Java 1.8+ 问题应该都可以使用上面的方法解决。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)