JIMFS not recognized by ZipFileSystemProvider

前端 未结 1 986
暗喜
暗喜 2021-01-13 23:09

I have a zip file created in jimfs (google in memory file system) from a byte array. When trying to open that file with ZipMemoryFileSystem, I get an error tha

相关标签:
1条回答
  • 2021-01-13 23:45

    Solution:
    Based on SO issue How to register a SPI implementation when running exec:java, I understood the class loader problem was due to the fact the code was run with maven exec:java. Running the code using a plain jar solved the problem!

    0 讨论(0)
提交回复
热议问题