This discussion is archived
3 Replies Latest reply: Feb 10, 2011 10:06 AM by VitorMARodrigues RSS

invoke snmpv1trap

VitorMARodrigues Journeyer
Currently Being Moderated

I´m runnig weblogic8.1 and trying to invoke the snmpv1trap as described in the oracle documentation (after setting the environment
After invoking the command "java snmpv1trap " the following error occurs:

Exception in thread "main" java.lang.NoClassDefFoundError: snmpv1trap
at (/usr/lib/
at JvThreadRun(java.lang.Thread) (/usr/lib/
at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/
at __gcj_personality_v0 (/opt/tools/bea/weblogic_815/weblogic81/common/bin/java.version=1.4.2)
at __libc_start_main (/lib/tls/
at JvRegisterClasses (/opt/tools/bea/weblogic_815/weblogic81/common/bin/java.version=1.4.2)

How can i fix this?

Any help appreciated
  • 1. Re: invoke snmpv1trap
    Faisal Khan Expert
    Currently Being Moderated
    It worked fine for me!



    32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Com
    mon Files\Intel\WirelessCommon\;C:\Program Files\ThinkPad\Bluetooth Software\;C:
    \Program Files\Lenovo\Access Connections\;C:\bea103\jdk160_05\bin;C:\bea816\WEBL

    Your environment has been set.
    C:\bea816\weblogic81\server\bin>java snmpv1trap
    Usage: snmpv1trap [-d] [-c community] [-p port] host enterprise agent-addr gener
    ic-trap specific-trap timeticks [OID {INTEGER | STRING | GAUGE | TIMETICKS | OPA
    QUE | IPADDRESS | COUNTER} value] ...
  • 2. Re: invoke snmpv1trap
    VitorMARodrigues Journeyer
    Currently Being Moderated

    in fact it appears an environment set message but i can´t run the command. so weird
  • 3. Re: invoke snmpv1trap
    VitorMARodrigues Journeyer
    Currently Being Moderated
    Got it.

    I was setting the environment invoking . in unix.
    I needed to delete the dot.

    After all i wasn´t following the documentation ;)



  • Correct Answers - 10 points
  • Helpful Answers - 5 points