I'm trying to add a file somefile.json to a folder /path/to/specificfolder in a file.jar file. somefile.json and file.jar are in the same folder app/. So I've tried
jar uf /app/file.jar -C /app path/to/specificfolder/somefile.json
But I got an error with
/app/path/to/specificfolder/somefile.json: no such file or directory.
I've tried some of the solutions I found here and here but still got the same error. Can someone help me with this please? Thanks in advance.