As you seem to be a maven maven :-), perhaps you can shed some light on this: I'm using Fedora 16, and on a clean Git clone of mwdumper, mvn package
successfully builds build/mwdumper-1.16.jar
. But when I want to execute it:
[tim@passepartout ~/src/mwdumper.2]$ java -jar build/mwdumper-1.16.jar Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream at org.mediawiki.dumper.Dumper.main(Dumper.java:129) Caused by: java.lang.ClassNotFoundException: org.apache.commons.compress.compressors.bzip2.BZip2CompressorOutputStream at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) ... 1 more [tim@passepartout ~/src/mwdumper.2]$ java -classpath /usr/share/java/apache-commons-compress.jar -jar build/mwdumper-1.16.jar Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream at org.mediawiki.dumper.Dumper.main(Dumper.java:129) Caused by: java.lang.ClassNotFoundException: org.apache.commons.compress.compressors.bzip2.BZip2CompressorOutputStream at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) ... 1 more [tim@passepartout ~/src/mwdumper.2]$ unzip -l /usr/share/java/apache-commons-compress.jar | fgrep org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream 15957 05-24-2012 18:33 org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream.class 1531 05-24-2012 18:33 org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream$Data.class [tim@passepartout ~/src/mwdumper.2]$
Any idea why this doesn't work?