java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser

The OpenNMS Issue Tracker | Markus von Rüden | 3 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k
  2. 0

    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser

    GitHub | 4 years ago | jcarsique
    java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser
  3. 0

    [NMS-7053] Installer does not run install -dis correctly on Windows - The OpenNMS Issue Tracker

    opennms.org | 2 years ago
    java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser

    GitHub | 4 years ago | sharp
    java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser
  6. 0

    At Step 9/10 I get an exception. {quote} C:\Users\marskuh\Downloads\standalone-opennms-installer-14.0.0-0.20141019.rc.stable.1.14.0.78\opennms-installer>SET OPENNMS_HOME=C:/OpenNMS C:\Users\marskuh\Downloads\standalone-opennms-installer-14.0.0-0.20141019.rc.stable.1.14.0.78\opennms-installer>SET DBNAME=opennms C:\Users\marskuh\Downloads\standalone-opennms-installer-14.0.0-0.20141019.rc.stable.1.14.0.78\opennms-installer>SET DBURL=jdbc:postgresql://localhost:5432/ C:\Users\marskuh\Downloads\standalone-opennms-installer-14.0.0-0.20141019.rc.stable.1.14.0.78\opennms-installer>SET ETCDIR=C:/OpenNMS/etc C:\Users\marskuh\Downloads\standalone-opennms-installer-14.0.0-0.20141019.rc.stable.1.14.0.78\opennms-installer>SET SERVLETDIR=C:/OpenNMS/webapps/opennms C:\Users\marskuh\Downloads\standalone-opennms-installer-14.0.0-0.20141019.rc.stable.1.14.0.78\opennms-installer>"C:\Program Files\Java\jdk1.7.0_10\bin\java" -Xmx512m "-Dopennms.home=C:/OpenNMS" "-Dinstall.dir=C:/OpenNMS" "-Dinstall.database.name=opennms" "-Dinstall.database.url=jdbc:postgresql://localhost:5432/" "-Dinstall.etc.dir=C:/OpenNMS/etc" "-Dinstall.servlet.dir=C:/OpenNMS/webapps/opennms" -classpath "C:/OpenNMS/lib/opennms_bootstrap.jar;C:/OpenNMS/lib/opennms_install.jar" org.opennms.install.Installer -dis -l C:/OpenNMS/lib java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2442) at java.lang.Class.getMethod0(Class.java:2685) at java.lang.Class.getMethod(Class.java:1620) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.CommandLineParser at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 6 more Exception in thread "main" {quote}

    The OpenNMS Issue Tracker | 3 years ago | Markus von Rüden
    java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser

  1. rsprangemeijer 1 times, last 7 days ago
  2. Nikolay Rybak 2 times, last 1 month ago
  3. mauritius 1 times, last 5 months ago
  4. r1chjames 2 times, last 5 months ago
  5. Kialandei 3 times, last 6 months ago
1 more registered users
85 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.cli.CommandLineParser

    at java.net.URLClassLoader$1.run()
  2. Java RT
    LauncherHelper.checkAndLoadMain
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    8. java.lang.Class.getDeclaredMethods0(Native Method)
    9. java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
    10. java.lang.Class.getMethod0(Class.java:2685)
    11. java.lang.Class.getMethod(Class.java:1620)
    12. sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
    13. sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
    13 frames