有一个小程序在 TrueZip 6 上运行良好。最近我通过在项目的类路径中添加 6 个包将 TrueZip jar 更新到版本 7.7.9:truezip-driver-file、truezip-driver-tar、truezip-driver-zip 、truezip-file、truezip-kernel 和 truezip-swing以及所有必要的依赖项(xz 1.5 等)。
编译过程中没有错误,但是,当我尝试在 main 方法中运行时:
TConfig.get().setArchiveDetector(
new TArchiveDetector(TArchiveDetector.NULL, new Object[][] {
{ "tar", new TarDriver(IOPoolLocator.SINGLETON) },
{ "tgz|tar.gz", new TarGZipDriver(IOPoolLocator.SINGLETON) },
{ "zip|alt|alib", new ZipDrive(IOPoolLocator.SINGLETON) } }));
它显示de.schlichtherle.truezip.socket.sl.IOPoolLocator$Boot 无法在 IOPoolLocator 中实例化
Boot 是一个内部和静态的最终类 http://grepcode.com/file/repo1.maven.org/maven2/de.schlichtherle.truezip/truezip-kernel/7.7.9/de/schlichtherle/truezip/socket/sl/ IOPoolLocator.java#IOPoolLocator
我发现很少有参考资料,但不幸的是不是很有帮助。