知方号

知方号

JAR File

JAR files are typically used to distribute applications that can be run with the Oracle Java Runtime Environment (multiplatform). If you have JRE installed and set as the default program associated with JAR files, you can simply double-click the JAR file to run it. When you do this on a Mac, Apple Jar Launcher (bundled with macOS) passes the JAR file to JRE, or JVM, which runs the file.

You can also view, extract, run, and create JAR files with the Java Archive Tool provided as part of the Java Development Kit (JDK) included in the Oracle Java SE Development Kit. The Java Archive Tool is a command-line utility and here are the commands associated with the different capabilities:

To view a JAR file - jar tf jar fileTo extract a JAR file - jar xf jar fileTo run a JAR file - java -jar app.jarTo create a JAR file - jar cf jar file input file(s)

NOTE: If you are looking to extract the contents from a JAR file, you can use various decompression utilities, such as Corel WinZip (Windows), Corel WinZip Mac (Mac), RARLAB WinRAR (Windows), and 7-Zip (Windows).

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至lizi9903@foxmail.com举报,一经查实,本站将立刻删除。