Thanks @marpet for your suggestion. When including the -Dsnap command, this error occurs: Invalid OpenJpeg executables, which was also discussed here
Invalid OpenJpeg executables
So I assume there is still some kind of permission problem.