java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils

JIRA | René Krell [Administrator] | 9 months ago
  1. 0

    Need help with AntActionInstallerListener

    Google Groups | 9 months ago | Oliver Kersten
    java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
  2. 0

    When using AntActionInstallerListener, there is the need to add commons-io.jar to the list of jars in install.xml, otherwise the installer will fail with: {code} FEIN: Executing all beforepack Ant actions of pack mycore ... Exception in thread "IzPack - Unpacker thread" java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils at com.izforge.izpack.event.AntAction.createLogger( at com.izforge.izpack.event.AntAction.performAction( at com.izforge.izpack.event.AntAction.performInstallAction( at com.izforge.izpack.event.AntActionInstallerListener.performAllActions( at com.izforge.izpack.event.AntActionInstallerListener.beforePack( at com.izforge.izpack.installer.event.InstallerListeners.beforePack( at com.izforge.izpack.installer.unpacker.UnpackerBase.unpack( at com.izforge.izpack.installer.unpacker.UnpackerBase.unpack( at at Source) Caused by: java.lang.ClassNotFoundException: at Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 10 more {code} Normally, , there should be all classes built-in needed by the Ant action execution functionality except dependencies that Ant and native or additional Ant tasks need. Add Apaches's FileUtils and depending classes as built-in classes to the installer.

    JIRA | 9 months ago | René Krell [Administrator]
    java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
  3. 0

    Maven NoClassDefError When Running Jar - Works Fine In Eclipse (Ant, Maven and Build Tools forum at Coderanch) | 5 months ago
    java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Maven NoClassDefError When Running Jar - Works Fine In Eclipse (Ant, Maven and Build Tools forum at Coderanch) | 3 months ago
    java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
  6. 0

    Erreur d'execution Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/io | 3 months ago
    java.lang.NoClassDefFoundError: org/apache/commons/io /FileUtils

  1. archenroot 1 times, last 2 weeks ago
  2. tyson925 5 times, last 2 weeks ago
  3. tzrlk 1 times, last 2 weeks ago
  4. musketyr 1 times, last 2 weeks ago
  5. kjhdofjosvs 3 times, last 3 weeks ago
63 more registered users
32 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

  2. Java RT
    1. Source)
    2. java.lang.ClassLoader.loadClass(Unknown Source)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    4. java.lang.ClassLoader.loadClass(Unknown Source)
    4 frames
  3. com.izforge.izpack
    1. com.izforge.izpack.event.AntAction.createLogger(
    2. com.izforge.izpack.event.AntAction.performAction(
    3. com.izforge.izpack.event.AntAction.performInstallAction(
    4. com.izforge.izpack.event.AntActionInstallerListener.performAllActions(
    5. com.izforge.izpack.event.AntActionInstallerListener.beforePack(
    6. com.izforge.izpack.installer.event.InstallerListeners.beforePack(
    7. com.izforge.izpack.installer.unpacker.UnpackerBase.unpack(
    8. com.izforge.izpack.installer.unpacker.UnpackerBase.unpack(
    9 frames
  4. Java RT
    1. Source)
    1 frame