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