简体   繁体   English

如何在NetBeans中修改清单文件?

[英]How do I modify my manifest file in NetBeans?

I'm very new to Java and a bit out of my element, but I have a Web Start Application/applet that I'm trying to change the manifest file on. 我对Java还是很陌生,有点不熟悉,但是我有一个Web Start应用程序/小应用程序,试图更改清单文件。 I want to include the line Trusted-Library: true 我想加入Trusted-Library: true

I clicked over to the "Files" tab, double-clicked on "manifest.mf" in the "build" folder, and edited the file to include this. 我单击了“文件”选项卡,双击“构建”文件夹中的“ manifest.mf”,然后编辑了文件以包括此文件。 However, as soon as I run a "Clean & Build," the manifest file is apparently overwritten, as the line I added disappears right before my eyes. 但是,一旦我运行“清理并生成”,清单文件显然就会被覆盖,因为我添加的行在我眼前就消失了。

How do I include this line? 如何添加此行? Thanks very much for any help! 非常感谢您的帮助!

I assume that you are using ant with netbeans to build your project, basically you need to modify build process to include manifest attribute you want in generated manifest 我假设您正在将ant与netbeans一起使用来构建项目,基本上,您需要修改构建过程以在生成的清单中包含所需的清单属性。

here is detailed tutorial 是详细的教程

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

相关问题 使用jenkins构建netbeans项目时,如何在清单文件中设置版本信息? - How do I set the version info in a manifest file when building a netbeans project with jenkins? 如何在Netbeans 6.9中编辑OSGi捆绑软件清单文件? - How can i edit OSGi bundles manifest file in Netbeans 6.9? 如何纠正NetBeans中“保存到文件”按钮上的错误? - How do I correct errors on my 'save to file' button in netbeans? 将.jar文件添加到netbeans中的项目后,如何将其中的类导入到netbeans中的项目中? - After adding a .jar file to a project in netbeans, how do I import classes in it to my project in netbeans? 如何在Netbeans中打开PDF文件? - How do i open a PDF file in Netbeans? 如何从我的库中已有的jar文件导入? (Netbeans Java) - How do I import from a jar file that is already in my library? (Netbeans Java) Netbeans模块开发-如何修改打开的文件 - Netbeans module development - How to modify opened file 如何修改此代码以写入文件? - How do I modify this code to write to a file? 如何读取在 apache tomcat 中运行的 web 应用程序的清单文件? - How do I read the manifest file for a webapp running in apache tomcat? 如何为新的java安全屏障编写清单文件 - How do I write a manifest file for the new java security barriers
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM