如何打开/运行.jar文件(双击不起作用)? [英] How to open/run .jar file (double-click not working)?

查看:1153
本文介绍了如何打开/运行.jar文件(双击不起作用)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法打开或运行我的.jar文件。
我刚刚安装了java,但是我试图先用其他程序打开.jar,所以双击默认为其他东西,我无法改回它。

I can't open or run my .jar file. I just installed java, but I tried to open the .jar with other programs first, so the double-click defaults to something else and I can't change it back.

java -jar myfile.jar 返回'java'不被识别为内部或外部命令,可操作程序或批处理文件。

java -jar myfile.jar returns "'java' is not recognized as an internal or external command, operable program or batch file."

有没有办法可以打开/运行这个?

Is there a way I can still open/run this?

非常感谢

e:操作系统是Windows 8.
另外,我下载了.jar文件;我自己没有创建它(如果那是相关的)
不确定它是否包含可执行文件(但我认为它确实存在)

e: OS is Windows 8. Also, I downloaded the .jar file; didn't create it myself (if that's relevant) Not sure if it contains an executable (but I think it does)

推荐答案

您可以使用命令提示符:

you can use the command prompt:

javaw.exe -jar yourfile.jar

希望它适合你。

这篇关于如何打开/运行.jar文件(双击不起作用)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆