Understanding the Manifest

Apple Intelligence深度解析:系统级生成式AI的端云协同架构 生成式人工智能(GenAI)正从应用层功能演进为操作系统核心能力。理解其底层原理,需回归‘意图识别—任务调度—安全执行’的技术主线:苹果通过Intent Understanding Engine实现毫秒级语义解析,依托On-Device Synthesis Core与Private Cloud Compute构建分级推理体系,在保障隐私与实时性的前提下,让AI能力自然融入文本润色、跨App协同等高频场景。这种系统级集成并非简单调用大模型,而是以芯片微架构优化(如Sparse Attention Unit)、 阅读详情

Understanding the Manifest

JAR files can support a wide range of functionality, including electronic signing, version control, package sealing, extensions, and others. What gives JAR files the ability to be so versatile? The answer is embodied in the JAR file's manifest.

The manifest is a special file that can contain information about the files packaged in a JAR file. By tailoring this "meta" information that the manifest contains, you enable the JAR file to be used for a variety of purposes.

Before looking at some of the ways manifests can be modified to enable special JAR-file functionality, let's take a look at the baseline default manifest.

The Default Manifest

When you create a JAR file, it automatically receives a default manifest file. There can be only one manifest file in an archive, and it always has the pathname
META-INF/MANIFEST.MF

When a JAR file is created with version 1.2 of the JavaTM Development Kit, the default manifest file is very simple. Here are its full contents:

Manifest-Version: 1.0

This line shows that a manifest's entries take the form of "header: value" pairs. The name of a header is separated from its value by a colon. The default manifest shows that it conforms to version 1.0 of the manifest specification.

The manifest can also contain information about the other files that are packaged in the archive. Exactly what file information is recorded in the manifest will depend on what use you intend for the JAR file. The default manifest file makes no assumptions about what information it should record about other files, so its single line contains data only about itself.

The format of the default manifest file changed between versions 1.1 and 1.2 of the Java Development Kit. If you create a JAR file for the java.math package, for example, the JDKTM 1.1 default manifest file would look something like this:

Manifest-Version: 1.0

Name: java/math/BigDecimal.class
SHA1-Digest: TD1GZt8G11dXY2p4olSZPc5Rj64=
MD5-Digest: z6z8xPj2AW/Q9AkRSPF0cg==

Name: java/math/BigInteger.class
SHA1-Digest: oBmrvIkBnSxdNZzPh5iLyF0S+bE=
MD5-Digest: wFymhDKjNreNZ4AzDWWg1Q==

Like the JDK 1.2 manifest file, the JDK 1.1 manifest has an entry for Manifest-Version. The version number is the same, indicating that the manifest specification didn't change between versions 1.1 and 1.2 of the JDK software.

Unlike the JDK 1.2 manifest file, the JDK 1.1 manifest has entries for each file contained in the archive, including the files' pathnames and digest values. The pathnames are given as values of the Name header. Any headers that immediately follow a Name header without any intervening blank lines, pertain to the file specified by the Name header. In the manifest above, for example, the first Name header is followed by these lines:

SHA1-Digest: TD1GZt8G11dXY2p4olSZPc5Rj64=
MD5-Digest: z6z8xPj2AW/Q9AkRSPF0cg==
Because these lines follow the Name header without any intervening blank lines, you know that the digest values they specify are the digest values for the file java/math/BigDecimal.class.

Digest values are relevant only with respect to signing JAR files. In fact, that's why the digest information isn't in the JDK 1.2 default manifest -- it isn't always needed. To learn more about digests and signing, see the Signing and Authenticating JAR Files lesson.

Special-Purpose Manifest Headers

Depending on what role you want your JAR file to play, you may need to modify the default manifest. If you're interested only in the "ZIP-like" features of JAR files such as compression and archiving, you don't have to worry about the manifest file. The manifest doesn't really play a role in those situations.

Most uses of JAR files beyond simple archiving and compression require special information to be in the manifest file. Summarized below are brief descriptions of the headers that are required for some special-purpose JAR-file functions:

Applications Bundled as JAR Files - version 1.2 only
If you have an application bundled in a JAR file, you need some way to indicate which class within the JAR file is your application's entry point. (Recall that the entry point is the class having a method with signature public static void main(String[] args).)

You provide this information with the Main-Class header, which has the general form:

Main-Class: classname
The value classname is the name of the class that is your application's entry point.

Download Extensions - version 1.2 only
Download extensions are JAR files that are referenced by the manifest files of other JAR files. See the trail on the extension mechanism for information about extensions.

In a typical situation, an applet will be bundled in a JAR file whose manifest references a JAR file (or several JAR files) that will serve as an extension for the purposes of that applet. Extensions may reference each other in the same way.

Download extensions are specified in the Class-Path header field in the manifest file of an applet, application, or another extension. A Class-Path header might look like this, for example:

Class-Path: servlet.jar infobus.jar acme/beans.jar
With this header, the classes in the files servlet.jar, infobus.jar, and acme/beans.jar will serve as extensions for purposes of the applet or application. The URLs in the Class-Path header are given relative to the URL of the JAR file of the applet or application. <!--

Hiding Implementation Classes in JAR Files - version 1.2 only
Your JAR file may contain packages that are part of your software's implementation that aren't intended to be publically visible to other applications. You can hide such packages by using the Exported-Packages header. When this header is used, only those packages listed as the header's value will be visible outside the JAR file. For example:

Exported-Packages: com.ourcom.* com.mycom
specifies that the package com.mycom and all packages with names beginning with com.ourcom will be visible outside the JAR file. All other packages in the JAR file will be hidden.

If the manifest doesn't have an Exported-Packages header, all packages are visible. -->

Package Sealing - version 1.2 only
A package within a JAR file can be optionally sealed, which means that all classes defined in that package must be archived in the same JAR file. You might want to seal a package, for example, to ensure version consistency among the classes in your software or as a security measure.

To seal a package, you need to add a Name header for the package, followed by a Sealed header, similar to this:

Name: myCompany/myPackage/
Sealed: true
The Name header's value is the package's relative pathname. Note that it ends with a ' /' to distinguish it from a filename. Any headers following a Name header, without any intervening blank lines, apply to the file or package specified in the Name header. In the above example, because the Sealed header occurs after the Name: myCompany/myPackage header, with no blank lines between, the Sealed header will be interpreted as applying (only) to the package myCompany/myPackage.
Package Versioning - version 1.2 only
The Package Versioning specification defines several manifest headers to hold versioning information. One set of such headers can be assigned to each package. The versioning headers should appear directly beneath the Name header for the package. This example shows all the versioning headers:
Name: java/util/
Specification-Title: "Java Utility Classes" 
Specification-Version: "1.2"
Specification-Vendor: "Sun Microsystems, Inc.".
Implementation-Title: "java.util" 
Implementation-Version: "build57"
Implementation-Vendor: "Sun Microsystems, Inc."

Additional Information

A specification of the manifest format is part of the on-line JDK documentation.
Unity打包PICO4 APK全攻略:从环境配置到疑难报错解决方案 在移动应用与XR开发领域,APK打包是将项目部署到Android设备的关键环节,其本质是构建系统对代码、资源与平台SDK的集成与编译过程。理解Gradle构建原理、IL2CPP编译机制以及Android Manifest的合并规则,对于解决跨平台兼容性问题至关重要。这些技术能确保应用性能优化、资源管理得当,并实现稳定的运行时环境。在VR/AR开发场景中,针对PICO4等XR设备进行打包时,常需处理特定的SDK集成、权限配置与图形API适配。本文聚焦Unity引擎下PICO4 APK打包的常见问题,通过分析G 阅读详情

相关推荐

Claude for Chrome:AI驱动的浏览器自动化新范式

浏览器自动化正从传统RPA的DOM定位与坐标依赖,转向以视觉理解、自然语言控制和权限栅栏为核心的智能代理模式。AI-powered browser assistance 通过实时截图分析UI布局、识别按钮与表单元素,结合意图解析模型将用户指令映射为可执行动作;其技术价值在于降低操作复杂度、提升跨网页任务可控性,并在邮件归档、表单填充等高频办公场景中释放人力。区别于黑盒式全自动工具,它强调基于权限的动作审批与网站粒度白名单管理,兼顾效率与安全。本文深入解析 Claude for Chrome 的设计逻辑、实操

liudaoru - 悟 464

CMake Error at G:~/cmake/build.cmake:552 (message): ERROR: The “path“ field in the manifest file

错误发生在“idf_component.yml”文件中的 “protocol_examples_tapif_io”和“protocol_examples_common” 组件的路径跟实际idf安装位置不一致。因为项目需要从idf安装文件里获取组件,由于我idf安装位置发生了变化,导致路径失效,CMake无法找到目录。将“idf_component.yml”文件中的地址修改即可。在使用SDK配置编辑器时发生如下错误。VScode、ESP-idf组件。

m0_61689711的博客 1530

Kubernetes多网卡环境下Calico网络配置避坑指南:如何精准指定业务网卡

本文针对Kubernetes多网卡环境下Calico网络配置的常见痛点,提供了精准指定业务网卡的实战指南。通过深入分析Calico的IP自动检测机制,详细解读并对比了五种IP_AUTODETECTION_METHOD配置方法(如interface、cidr、can-reach等),帮助运维人员从根源上解决网络分区和Pod通信失败问题,确保生产集群网络的稳定与可靠。

weixin_28835551的博客 731

eclipse打jar包产生的问题

方案一:用Eclipse自带的Export功能 步骤1:准备主清单文件 “MANIFEST.MF”, 由于是打包引用了第三方jar包的Java项目,故需要自定义配置文件MANIFEST.MF,在该项目下建立文件MANIFEST.MF,内容如下: Manifest-Version: 1.0 Class-Path: lib/commons-codec.jar lib/commons-

人生最遗憾的莫过于:轻易地放弃了不该放弃的,固执地坚持了不该坚持的 1179

从零开始:如何用Python建立你的第一个人工智能模型

在这篇文章中,我们将介绍如何从零开始使用Python建立你的第一个人工智能模型。无论你是刚接触编程的新手,还是有经验的开发者想进一步探索人工智能领域,这篇文章都将为你提供清晰、详细的指南。我们将一步步探索数据预处理、模型建立、训练和测试的过程,以及如何解读模型的结果。

Allen1862105的博客 4万+

Aveva Marine C# 二次开发入门001

1# 引用 C:\AVEVA\Marine\OH12.1.SP4\Aveva.ApplicationFramework.dll C:\AVEVA\Marine\OH12.1.SP4\Aveva.ApplicationFramework.Presentation.dll 2# 引用命名空间, using Aveva.ApplicationFramework.Presentation;usi...

weixin_30245867的博客 1913

Understanding the Manifest (转)

Understanding the Manifest (转)[@more@]Understanding the Manifest JAR files can support a wide range of functio...

csd3176的博客 181

MATLAB功率谱函数psd与pwelch的使用

在网上看到 clear; Fs=1000; n=0:1/Fs:1; y=cos(2*pi*40*n)+3*cos(2*pi*100*n)+randn(size(n)); Nfft=1000; window=hanning(100); noverlap=20; dflag='none'; [Pxx,f]=psd(y,Nfft,Fs,window,noverlap); figure plot(f,10*log10(Pxx)); xlabel('frequency/Hz');ylab

qq_41687938的博客 2万+

Understanding the MANIFEST.MF

[url]http://java.sun.com/docs/books/tutorial/deployment/jar/defman.html[/url] [b]pathname[/b] META-INF/MANIFEST.MF [b]only one manifest file in an archive[/b] [b]form of "header: value" pair...

iteye_4020的博客 195

eLabRadio软件无线电虚实结合仿真开发平台简介

在使用仿真平台时,不要关闭设备或断开设备与PC机之间的网络连接,否则,仿真平台将无法正常工作。注:采用eNodeX设备认证方式,当出现“设备不存在”的报错时,请检查计算机IP是否和硬件设备IP处于同一网段,或者是否是先连接好网线,再开启硬件设备的。①此登录方式下,需要先建立软件与硬件的通信:在登录窗口点击【网络配置】,参照下图输入设备IP,服务器地址无需设置,设置完成后点击确认,此时登录界面无需设置账号密码;,拷贝到电脑上,使用管理员权限运行setup.exe,下一步直到安装完成,桌面会生成快捷方式。

weixin_55349105的博客 6320

【基础演练】Playwright 极简复习:作为 AI-RPA 底座的 Playwright 核心用法

摘要: 2026年,Playwright已从测试工具升级为AI-RPA标准执行底座,周下载量超3300万,被browser-use等AI Agent项目广泛采用。其核心架构通过Playwright Server实现多浏览器协议适配,支持远程连接与高并发隔离(BrowserContext)。自动等待机制显著提升稳定性,但高频交互场景可能需直接使用CDP协议。Playwright凭借跨浏览器兼容性、轻量级隔离和微软官方支持,成为测试、RPA和AI Agent领域的事实标准,未来将主导对话式自动化市场。

ZDQ58818的博客 243

simple understanding of manifest

why manifest file exist? An assembly manifest is an XML file that describes a side-by-side assembly. Assembly manifests describe the names and versions of side-by-side assemblies, files, and resour

小文panda的专栏 687

虚拟电厂功率预测最佳实践白皮书

虚拟电厂(VPP)通过聚合分散的可再生能源资源,为电网提供可观测、可调度和可交易的解决方案。本文提出了一套功率预测方法论,并给出LSTM实现脚本,涵盖资源接入、数据治理、预测模型设计及市场交易闭环。针对风-光-储-负荷混合场景,该方法论强调轻量化部署和滚动优化,可有效提升预测精度和调度收益。未来研究将融合深度气象预报和强化学习,进一步优化VPP的协同调度能力。

专注AI大模型,软件混淆,授权 377

Understanding PWA

原文地址: https://blog.webkong.cn/2018/... What is pwa? Progressive Web App, 简称 PWA,是提升 Web App 的体验的一种新方法,能给用户原生应用的体验。 PWA 能做到原生应用的体验不是靠特指某一项技术,而是经过应用一些新技术进行改进,在安全、性能和体验三个方面...

weixin_34040079的博客 245

YOLO26中 RepVGGBlock_OREPA 架构的设计与性能提升分析(mAP +4.89)

REPVGGOREPA模块代表了重参数化技术的最新发展,它通过巧妙的架构设计实现了训练时的丰富表达和推理时的高效计算。其核心创新包括多分支特征聚合、动态权重生成、频域先验知识融合等技术,为深度学习模型的效率优化提供了新的解决方案。这种设计理念不仅在技术上具有重要意义,在实际应用中也展现出了显著的优势,特别是在需要高精度和高效率的工业场景中表现突出。随着重参数化技术的不断发展,REPVGGOREPA为未来的网络架构设计提供了重要的参考和启发。

know_F0727的博客 67

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

终极文档转换革命:如何用markitdown统一处理30+文件格式为LLM友好Markdown

在当今AI驱动的世界中,文档处理已成为每个开发者和数据科学家必须面对的挑战。PDF、Word、Excel、PPT、EPUB、HTML、图片、音频……格式五花八门,而大语言模型却只"理解"Markdown。markitdown正是解决这一痛点的终极工具,它能将30多种文件格式统一转换为LLM友好的Markdown格式,为AI应用提供标准化的文本输入。 ## 文档格式碎片化:AI时代的最大障碍 你

gitblog_01059的博客 473

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

Home Assistant core:raise-pull-request Agent 的 11 步 PR 自动化工作流全解析

本文以 [raise-pull-request Agent 定义文件](https://link.gitcode.com/i/76d399d33676dcb026201a1095727c0e) 为主体,完整拆解该 Agent 在 Home Assistant core 仓库中创建 Pull Request 的 11 个步骤:从基线分支确定、代码质量检查、集成测试,到 PR 标题撰写、变更类型判定与

gitblog_00552的博客 748

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

考研英语单词20

optimistic a.乐观主义的(negative 悲观的,被动的 pessimistic a.悲观的,厌世的)【optimisim n.乐观主义 optimist n.乐观者 pessimism n.悲观主义。evident a.明显的,显然的【evidently ad.明显地 self-evdient a.不言而喻的 evidence n.证据,迹象 in evidence 明显的,可看见的】fierce a.凶猛的,狂热的【fiercely ad.凶猛地】

weixin_63566653的博客 656

OpenAI无屏智能音箱AI伴侣技术解析与开发实战

智能语音助手作为人工智能的重要应用领域,其技术原理基于自然语言处理和语音识别技术。通过深度学习模型实现语音到文本的转换和语义理解,技术价值在于提供更自然的人机交互体验。在应用场景方面,智能语音助手广泛应用于智能家居控制、信息查询和个性化服务等领域。OpenAI最新推出的无屏智能音箱AI伴侣,通过集成GPT系列模型的对话能力和边缘计算技术,解决了传统语音助手交互不自然和上下文记忆差等痛点。该设备采用云端协同架构,为开发者提供完整的SDK和API接口,支持智能家居控制、企业客服等多样化应用开发。

weixin_33889665的博客 379

工具Cursor(一)介绍&简单使用&特色

下载安装后使用google账户登录。使用代码库索引后:✅ AI 回答更准确,因为它能基于当前项目的索引库回答问题✅ 文件搜索更快✅ AI 能更好地理解跨文件的关系✅ 重构建议更精准实际效果对比使用代码库索引和不使用代码库索引的主要区别:使用代码库索引时,AI 先搜索了项目中的文件,然后根据文件内容回答AI 能准确指出项目中实现的具体功能和代码不使用代码库索引时,AI 只能从一般角度回答,没有针对项目的具体情况什么是 AI 规则?AI 规则是 Cursor 的一个功能。

w_t_y_y的博客 2713

CANN/hcomm HCCL-VM虚拟执行环境

HCCL-VM is a virtual execution environment for high-performance collective communication targeting Huawei Ascend NPU cards. This tool enables the development and functional verification of HCCL collec

gitblog_00459的博客 1092

零代码构建AI语音助手:NeMo Voice Agent完整实战指南

想要快速构建本地部署的智能语音助手却苦于复杂的代码编写?NeMo Voice Agent为你提供终极解决方案!这个开源框架将NVIDIA NeMo的语音识别(ASR)、文本转语音(TTS)技术与HuggingFace大语言模型(LLM)无缝集成,让你无需编写复杂代码即可搭建功能完整的智能语音交互系统。无论是智能家居控制、企业客服机器人还是多语言口语练习助手,NeMo Voice Agent都能提供

gitblog_00430的博客 317

AI文档智能:分层架构实现高精度结构化信息提取

文档智能(Document Intelligence)是将非结构化PDF、扫描件、合同等文本转化为可计算结构化数据的关键技术。其核心原理在于突破传统OCR或规则匹配的局限,依托大语言模型的语义理解能力,结合预处理切片、领域感知推理、跨文档关联与可信验证四层协同机制,实现字段级精准提取与逻辑一致性校验。该技术显著提升法务合规审查、金融尽调、医疗注册申报等场景的信息处理效率与决策可信度。本文聚焦AI Document Intelligence落地中的工程化实践,详解LLM-powered extraction如

cuankuangzhong6373的博客 381

GOTO 语句有害论 | 反对 GOTO 语句的理由

……

u013669912的博客 1882
上一篇: Getting Listeners from JavaBeansTM
下一篇: Distributed Java Programming with RMI and CORBA
CanFly
博客等级 码龄25年 0粉丝 18原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值