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(AntAction.java:519) at com.izforge.izpack.event.AntAction.performAction(AntAction.java:162) at com.izforge.izpack.event.AntAction.performInstallAction(AntAction.java:118) at com.izforge.izpack.event.AntActionInstallerListener.performAllActions(AntActionInstallerListener.java:310) at com.izforge.izpack.event.AntActionInstallerListener.beforePack(AntActionInstallerListener.java:200) at com.izforge.izpack.installer.event.InstallerListeners.beforePack(InstallerListeners.java:190) at com.izforge.izpack.installer.unpacker.UnpackerBase.unpack(UnpackerBase.java:429) at com.izforge.izpack.installer.unpacker.UnpackerBase.unpack(UnpackerBase.java:251) at com.izforge.izpack.installer.unpacker.UnpackerBase.run(UnpackerBase.java:236) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils at java.net.URLClassLoader.findClass(Unknown 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)

    coderanch.com | 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)

    coderanch.com | 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

    developpez.net | 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

    org.apache.commons.io.FileUtils

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(Unknown 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
    UnpackerBase.run
    1. com.izforge.izpack.event.AntAction.createLogger(AntAction.java:519)
    2. com.izforge.izpack.event.AntAction.performAction(AntAction.java:162)
    3. com.izforge.izpack.event.AntAction.performInstallAction(AntAction.java:118)
    4. com.izforge.izpack.event.AntActionInstallerListener.performAllActions(AntActionInstallerListener.java:310)
    5. com.izforge.izpack.event.AntActionInstallerListener.beforePack(AntActionInstallerListener.java:200)
    6. com.izforge.izpack.installer.event.InstallerListeners.beforePack(InstallerListeners.java:190)
    7. com.izforge.izpack.installer.unpacker.UnpackerBase.unpack(UnpackerBase.java:429)
    8. com.izforge.izpack.installer.unpacker.UnpackerBase.unpack(UnpackerBase.java:251)
    9. com.izforge.izpack.installer.unpacker.UnpackerBase.run(UnpackerBase.java:236)
    9 frames
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame