Edit the .properties file inside a jar without extracting it or changed to .zip format

后端 未结 4 1563
暗喜
暗喜 2021-01-13 10:49

I currently involved in a project which requires to load a properties file which is located inside a jar file and i need to edit tat. I have Googled a bit and saw quite a fe

4条回答
  •  半阙折子戏
    2021-01-13 11:47

    Yes you can, In Centos 7 and the vim version 7.4 you can edit zip or jar files zip whit out unzip. So you execute the next commands and you can edit your properties file.

    vim Programm.jar 2

    [Then you see a lot of directories, so you go to the specific file you wan edit and push enter then you can edit the file use vim with the vim commands.]

提交回复
热议问题