Uploaded image for project: 'Miscellaneous'
  1. Miscellaneous
  2. MIS-57

Is bin/checkwmi supposed to be working with cygwin?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: future 1.8
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      Windows 2K8R2, Cygwin

      Description

      I made sure there was no space in the path (output'ing all parameters for debug) but it seems that the main class is simply missing...

      ===

      $ ./checkwmi
      /cygdrive/c/PROGRA~2/OpenNMS/lib/j-interopdeps-2.0.8.jar
      /cygdrive/c/PROGRA~2/OpenNMS/lib/j-interop-2.0.8.jar
      /cygdrive/c/PROGRA~2/OpenNMS/lib/jcifs-1.3.14.jar
      /cygdrive/c/PROGRA~2/OpenNMS/lib/opennms-wmi-1.8.5.jar
      /cygdrive/c/PROGRA~2/OpenNMS/lib/log4j-1.2.15.jar
      /cygdrive/c/PROGRA~2/OpenNMS/lib/commons-cli-1.2.jar
      exec /cygdrive/c/PROGRA~2/OpenNMS/bin/runjava -r – -Xmx256m -cp /cygdrive/c/PROGRA~2/OpenNMS/lib/j-interopdeps-2.0.8.jar:/cygdrive/c/PROGRA~2/OpenNMS/lib/j-interop-2.0.8.jar:/cygdrive/c/PROGRA~2/OpenNMS/lib/jcifs-1
      .3.14.jar:/cygdrive/c/PROGRA~2/OpenNMS/lib/opennms-wmi-1.8.5.jar:/cygdrive/c/PROGRA~2/OpenNMS/lib/log4j-1.2.15.jar:/cygdrive/c/PROGRA~2/OpenNMS/lib/commons-cli-1.2.jar org.opennms.protocols.wmi.CheckWmi

      Exception in thread "main" java.lang.NoClassDefFoundError: org/opennms/protocols/wmi/CheckWmi
      Caused by: java.lang.ClassNotFoundException: org.opennms.protocols.wmi.CheckWmi
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      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)
      Could not find the main class: org.opennms.protocols.wmi.CheckWmi. Program will exit.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            julien@flowtrading.com Julien Wilk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: