commons-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/COMPRESS-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13966370#comment-13966370
] 

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: https://issues.apache.org/jira/browse/COMPRESS-275
>             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: Report2.java
>
>
> 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
(v6.2#6252)

Mime
View raw message