commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <>
Subject [jira] [Commented] (COMPRESS-275) Packing problem? NoClassDefFoundError: org/tukaani/xz/FilterOptions
Date Fri, 11 Apr 2014 09:41:17 GMT


Emmanuel Bourg commented on COMPRESS-275:

org.tukaani:xz is a dependency of commons-compress, importing the transitive dependencies
of the libraries you use is generally a good idea :) Dependency managers like Maven and Ivy
do it for you automatically.

Note that in the next release this dependency will become optional, so you'll have to import
it explicitly if you use the XZ functionalities. We have to document that properly.

> Packing problem? NoClassDefFoundError: org/tukaani/xz/FilterOptions
> -------------------------------------------------------------------
>                 Key: COMPRESS-275
>                 URL:
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Compressors
>    Affects Versions: 1.8
>         Environment: Mac OS 10.9 w/ Java 6, 7
>            Reporter: Cyrille Artho
>         Attachments:
> I can compile the code but not execute it because a class seems to be missing. I guess
the class is not part of the API but used internally.
> When I use the constructor of org.apache.commons.compress.compressors.xz.XZCompressorOutputStream,
then I need org/tukaani/xz/FilterOptions at run-time, which is not part of apache-compress.jar.
> It's at least not immediately obvious that other .jar files are required to use some
of the functionality. Maybe this was intended to be included in the distribution?

This message was sent by Atlassian JIRA

View raw message