繁体   English   中英

无法双击打开 .jar 文件

[英]Can't open .jar files with double click

我最近一直在学习 Java,我需要能够打开 .jar 文件,但在 cmd 之外,我不能再打开了。 .jar 文件只是没有图标(它有,它只是一个白色方块),当我双击它时,它提示我打开为。 我遵循了一些操作并使用 java.exe 打开它,但它立即关闭了。

To open a jar file in Windows, you must have the Java Runtime Environment installed. Alternatively, you can use decompression software, such as an unzip utility, to view the files in the jar archive.

If the jar file opens using an archive program, such as WinRAR or 7-Zip, and you want Java to open it instead, follow the instructions below. (The jar file must contain executable Java code for these steps to work.)

1-Right-click the file and select Open With.
2-In the Open With window, click the Browse button to open the File Explorer window.
3-You need to find the Java executable file (java.exe file) on your computer hard drive. It is often located in the "Program Files\Java" or "Program Files (x86)\Java" folder, within a possible subfolder below the Java folder. Once you find the file, select it and click OK.

如果只需要打开jar文件,可以使用7-Zip之类的文件解压器来查看里面的内容。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM