做java开发的,对jar包和war包肯定接触的不少。我们有必要对他们做一个深入的了解。现在我们整理一下。
jar包的介绍
JAR(Java Archive)是与平台无关的文件格式,它允许将许多文件组合成一个压缩文件。
JAR文件格式以流行的ZIP文件格式为基础。与ZIP文件不同的是,JAR文件不仅用于压缩和发布,而且还用于部署和封装库,组件和插件程序,并可被像编译器和JVM这样的工具直接使用。在JAR中包含特殊的文件,如MAINFEST和部署描述符,用来指示工具如何处理特定的JAR.
2025年10月02日
做java开发的,对jar包和war包肯定接触的不少。我们有必要对他们做一个深入的了解。现在我们整理一下。
JAR(Java Archive)是与平台无关的文件格式,它允许将许多文件组合成一个压缩文件。
JAR文件格式以流行的ZIP文件格式为基础。与ZIP文件不同的是,JAR文件不仅用于压缩和发布,而且还用于部署和封装库,组件和插件程序,并可被像编译器和JVM这样的工具直接使用。在JAR中包含特殊的文件,如MAINFEST和部署描述符,用来指示工具如何处理特定的JAR.
2025年10月02日
在互联网软件开发领域,Spring Boot 框架以其便捷高效的开发体验,深受广大开发者的喜爱。其中,Spring Boot 3 中可执行 Jar 包的特性更是为项目的部署和运行带来了极大的便利。今天,我们就来深入探讨一下 Spring Boot 3 中 Jar 的运行原理,以及解压 Jar 包之后各个文件的含义。
2025年10月02日
jar文件是java的归档文件,用java虚拟机可以打开,以下是打开步骤:
工具
java JDK
方法/步骤
第一步:下载安装java jdk,如果是已经安装的可以跳过
第二步:安装完成后开始菜单里面会有一个JAVA的文件夹
第三步:现在找到你想打开的后缀为.jar的文件。
第四步:在该文件上右键,选择打开方式
2025年09月29日
This aerial drone photo shows a view of the container terminal of Nanjing Port in east China's Jiangsu Province, April 16, 2025. [Photo/Xinhua]
By Matteo Giovannini
2025年09月29日
City view of Hong Kong Special Administrative Region, south China, February 1, 2025. [Photo/Xinhua]
By Xu Ying
Wang Yi, a member of the Political Bureau of the Communist Party of China Central Committee and Chinese foreign minister, attended the signing ceremony of the Convention on the Establishment of the International Organization for Mediation (IOMed) in China's Hong Kong Special Administrative Region on May 30. This milestone is more than a ceremonial launch of a new international institution – it is a powerful symbol of a shifting global order, one that increasingly values pluralism, inclusiveness and peaceful dispute resolution over rigid orthodoxy or geopolitical dominance.
2025年09月29日
National flags of China and the United States. [Photo/Xinhua]
By Jessica Durdu
Recent polling data from the think tank Third Way reveals a striking shift in American public opinion regarding China. Between 2023 and 2025, the percentage of Americans who view China as an "enemy" has dropped by 7 percentage points, while those who regard it as a "trade partner" have increased by 8 percentage points. Additionally, there has been a significant rise, by 20 percentage points, in the number of Americans who favor cooperation and consensus-building with China.
2025年09月29日
The Victoria & Alfred Waterfront and Table Mountain in Cape Town, South Africa, August 12, 2023. [Photo/Xinhua]
By Kirtan Bhana
The expulsion of the South African Ambassador to the United States Ebrahim Rasool, watched by the world with a mixture of surprise and contemplation, adds to a long list of contentious and dramatic moves made by U.S. President Donald Trump, characterized by abrupt, and often unpredictable, policy shifts. The incident serves as a crucial moment for reflection, particularly for the Global South countries, which now find themselves at a crossroads.
2025年09月29日
By Zheng Haizhen
In September 2015, while attending the General Debate of the 70th Session of the United Nations General Assembly and delivering an important speech, Chinese President Xi Jinping emphasized that "peace, development, equity, justice, democracy and freedom are common values of all humanity and the lofty goals of the United Nations." Since then, President Xi has on many occasions stressed the need to carry forward the common values of humanity.
2025年09月29日
A view of Shougang Park, the venue of CIFTIS, in Beijing, September 10, 2025. [Photo/Xinhua]
By Timothy Kerswell
The China International Fair for Trade in Services (CIFTIS) is being held from September 10-14 in Beijing. Organized since 2012, CIFTIS is one of the world's largest and most vibrant services economy platforms. As a global forum, the annual event gathers governments, businesses, and investors from around the world to witness first-hand how trade in services is driving digital innovation, greening growth, and spurring new models of economic growth. Nearly 2,000 companies are exhibiting onsite, including almost the entire Fortune Global 500 firms and industry leaders such as Walmart, AstraZeneca and KPMG. This year's most important presence will be that of Australia, which is serving as the guest of honor for CIFTIS 2025. With nearly 60 institutions and companies participating at the Australian pavilion, it is also the largest Australian delegation in the history of the fair. There can be no mistaking the message being sent by this signal of intent: China and Australia want to expand their economic ties, deepen their cooperation, and build their partnership on the most practical, forward-looking, and mutually beneficial areas of shared interest.
2025年09月29日
AI-generated image
AsianFin -- Dubai is rapidly transforming itself from a desert oil hub into a global tech powerhouse, harnessing artificial intelligence, venture capital, and pro-business policies to position itself as the Middle East’s answer to Silicon Valley.