Open Cervator opened 9 years ago
Is this specific for Linux or a general problem? I never encountered that issue. Java 7 has a FileSystem for ZIP files - I wonder why org.reflections is not using that.
Quickly browsing through the JavaDoc resulted in:
org.reflections.vfs.Vfs.addDefaultURLTypes(new Vfs.UrlType() { ... } );
Maybe that can be used to plug in the ZIP file system, but maybe it's easiest to just add commons-vfs2
to the classpath.
It is possible the config.cfg had a syntax error preventing proper loading. I need to eliminate that variable. Will report back.
Also, I have to check, but I am fairly confident this machine has Java 8 installed.
@minnesotags nah pretty sure the config.cfg was fine at that point. This is a code issue
@msteiger it never happened for me either, but then it is probably rare how often we've tried to load a module from a .zip before, renaming to .jar alone fixed it :-)
@immortius mentioned something about alternatively adding some sort of type handler, yeah, so that might do it too
@minnesotags ran into this issue while trying to add a module from a zip file to a headless server on a Linux host:
It looks like we need to add an optional dependency for Reflections: