• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

error during executing java-snmp program...

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i have to develop snmp based program. when i am executing my program, i am getting error:

1........
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jdmk/snmp/SnmpPduFactoryBER
at javax.management.snmp.manager.SnmpPeer.<init>(SnmpPeer.java:123)
at SystemInfo.getDetails(SystemInfo.java:29)
at SystemInfo.main(SystemInfo.java:147)

i am using j2sdk1.4.2_15 and my code is as here :
(below code is compliled but giving error at run time)

System.out.println("1........");

SnmpPeer snmppeer=new SnmpPeer("192.168.0.233", 161); // error here..

System.out.println("2........");

SnmpParameters snmpparameters = new SnmpParameters(this.strReadCommunity, this.strWriteCommunity);

System.out.println("3........");

snmppeer.setSnmpParam(snmpparameters);

System.out.println("4........");

if((this.mySession != null) && (this.mySession.isSessionActive())){
System.out.println("5........");

this.mySession.destroySession();
this.mySession = null;
}

i have installed only jre version.
so, what is that error ? please help me..its urgent...

Thanks in advance...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic