问题标签 [manifest]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
23661 浏览

java - 如何使用自定义清单文件在 Eclipse 中构建 JAR?

我正在尝试在 Eclipse 中构建一个 Felix 包。这基本上包括让 Eclipse 创建一个 JAR(通过导出)并添加我的自定义清单文件,但是,我似乎无法让它工作。当我尝试导出 JAR 文件时,我的自定义清单文件显示在 JAR 中,但从未添加到 JAR (meta-inf) 中的正确位置。这会导致将另一个由 Eclipse 创建的默认清单文件添加到我的 JAR 文件中。

注意:我正在使用 Eclipse 的内置 JAR 导出工具并选择使用工作区中现有清单文件的选项。

我敢肯定有一些小细节被忽略了,但我有点难过。

谢谢你的帮助。

0 投票
7 回答
1538 浏览

java - 使用 JDK 和/或 JRE 提供的工具,有没有办法查看给定 JAR 的清单文件?

我可以在我的 Java 代码中读取 Manifest 文件,但我也想知道它是否可能,如果可能,如何从命令行打开 JAR 文件并查看其 Manifest.MF 文件,或者至少能够指定 Manifest.MF 文件的属性并查看它的值。

0 投票
1 回答
720 浏览

uac - 当您不知道运行时应用程序名称时的 UAC 应用程序清单

如果 UAC 关闭,我有一个程序可以正常工作。我希望能够使用清单让它在启动时简单地请求提升权限。

MS的说明说“应用程序清单文件应该与目标可执行文件具有相同的名称,扩展名为.manifest”,这可能就是我没有成功的原因。

http://msdn.microsoft.com/en-us/library/bb756929.aspx

我的程序构建为“one.exe”,然后 {SmartAssembly} 将其重命名为“two.exe”,然后鼓励用户再次重命名它。我不知道这是否重要或使用哪个可执行文件名。

有谁知道我想要的是否可能?如果没有,有没有办法让应用程序告诉用户与 UAC 相关的问题?

提前致谢。

0 投票
1 回答
275 浏览

crash - 如果启用 UAC,屏幕保护程序会崩溃

屏幕保护程序是否需要任何清单文件?我将 .exe 重命名为 .scr 文件。

现在我没有为屏幕保护程序使用任何清单文件。但是如果启用 UAC,我的屏幕保护程序就会崩溃。如何绕过这个 UAC 东西?

0 投票
1 回答
1980 浏览

spring - Apache Ant JAR 任务:找不到属性

我应该如何准确地指定 ant 清单中所有属性文件的位置?

我的 jar 无法正常工作,因为它找不到 log4j、Spring 等属性。

这些文件都包含在一个名为“server-config”的文件夹中,该文件夹与源代码位于同一级别,即:

  • 元信息
  • com
  • 服务器配置

本质上,我想知道我需要向 jar 的 Class-Path 属性添加什么,以了解 server-config 文件夹中的所有这些属性文件。

这是我目前的任务:

我已经尝试了一些东西,但它们都没有工作,由于找不到文件,我不断收到错误。

任何帮助将不胜感激!

0 投票
8 回答
38759 浏览

netbeans - Netbeans 清单

是否可以将条目添加到 netbeans 生成的 jar 的 manifest.mf 文件中?

例如构建一个 osgi 包。

0 投票
3 回答
2243 浏览

java - 在 Java 中,如何在日志文件中包含动态版本信息?

从 Java 应用程序中,我可以使用自定义日志框架记录字符串,如下所示:

因此,当用户向我发送日志文件时,我可以轻松查看他们正在运行的应用程序版本。

上面代码的问题是版本是硬编码在字符串文字中的,有人需要记住为每个版本更新它。更新此字符串可能会被遗忘,这是相当不可避免的。

我想做的是让这个字符串文字根据应用程序 JAR 清单文件中的版本号之一自动更新:

只要版本号进入日志文件,我不介意这种情况发生在编译时还是运行时。

0 投票
2 回答
9680 浏览

java - 我可以调用位于另一个 jar 文件中的 jar 库中的类文件吗?

我正在尝试访问打包为库的类文件,但不幸的是,jar 库应该打包在另一个 jar 文件中。

例如说我有一个包含一些类库的.jar。我可以从我的外部 java 应用程序调用(导入)jar 文件中的类。现在我需要把这个 a.jar 放在另一个 jar 中,比如 b.jar,并且需要从 b.jar 外部访问(导入)a.jar 中的类。

这不是我想做的事情:)

0 投票
2 回答
5331 浏览

security - Visual Studio 2005 security updates and CRT DLL versions in manifest

Recent Visual Studio 2005 security updates may be causing problems for us.

We build and internally distribute SDKs written in C++. These SDKs are a collection of header files and static libraries only. After installing the security updates our SDKs now depend on the newer versions of the MSVC CRT DLLs. These SDKs are used downstream in projects which produce EXE files.

If one of these EXE files is built with a mix of SDKs (some from before the security updates, some from after), then the EXE file produced makes reference to two sets of MSVC runtime DLLs. E.g:

Does this mean that at runtime this EXE will be using both versions of the DLL? Does this mean we must distribute both versions of the MSVC Runtime DLLs with this EXE?

Is there a simple way to avoid this problem without forcing all SDKs to be built with the Visual Studio 2005 security patches in place? (This would be undesirable for some of the older and quite stable SDKs that we don't want to rebuild unnecessarily)

Is is possible to simply rewrite the manifest file on either the SDKs or the final EXE file so that only one version of the MSVC CRT DLLs are mentioned?


My understanding is that the relevant updates are as follows:

Security update for Microsoft Visual Studio 2005 Service Pack 1: KB971090

http://go.microsoft.com/fwlink/?LinkId=155934

Security update for Microsoft Visual Studio 2008 Service Pack 1: KB971092

http://go.microsoft.com/fwlink/?LinkID=155933


I have discovered two other questions which are similar:

VC++: KB971090 and selecting Visual C Runtime DLL dependencies

Does the latest Visual Studio 2005 Security Update cause C runtime library issues when hot fixing customer sites

0 投票
1 回答
836 浏览

security - 重写 EXE 或 DLL 清单以强制使用特定版本的 MSVC CRT DLL 是否安全?

Microsoft 是否支持简单地重写 EXE 或 DLL 的清单以强制使用特定版本的 MSVC CRT?

由于 Visual Studio 2005/2008 安全更新( KB971090KB971092)最近出现问题,我对此很感兴趣。我想简单地将清单重写为构建后步骤,以阻止出现多个版本的 CRT DLL 的问题。

有问题的 MSVC CRT DLL 的两个版本是 v8.0.50727.4053 和 v8.0.50727.762,因此只有较小的版本号更改。


这个问题已经从:Visual Studio 2005 security updates and CRT DLL versions in manifest