如何修改META-INF / MANIFEST.mf

时间:2021-01-30 06:28:22

i am facing problem in java web service REST and the solution of the problem is to add this line:

我在java Web服务REST中面临问题,问题的解决方案是添加以下行:

,org.xml.sax.helpers,javax.xml.parsers;resolution:=optional,javax.naming;resolution:=optional

in META-INF/MANIFEST.MF. just like in this previous problem here: Glassfish error when producing JSON However i can't edit this file, is there any way to edit it? By the way i am using windows 10 so i can't use terminal.

在META-INF / MANIFEST.MF。就像之前的问题一样:生成JSON时Glassfish错误但是我无法编辑这个文件,有没有办法编辑它?顺便说一下,我使用的是Windows 10,所以我不能使用终端。

1 个解决方案

#1


1  

Rename your jar file into .zip file. Open it with Windows Explorer. The paste into META-INF your new MANIFEST.MF file. And finally rename .zip back to .jar file.

将jar文件重命名为.zip文件。使用Windows资源管理器打开它。将新的MANIFEST.MF文件粘贴到META-INF中。最后将.zip重命名为.jar文件。

#1


1  

Rename your jar file into .zip file. Open it with Windows Explorer. The paste into META-INF your new MANIFEST.MF file. And finally rename .zip back to .jar file.

将jar文件重命名为.zip文件。使用Windows资源管理器打开它。将新的MANIFEST.MF文件粘贴到META-INF中。最后将.zip重命名为.jar文件。