http://www.snmp4j.org/doc/org/snmp4j/tools/console/SnmpRequest.html#main%28java.lang.String[]%29 Above link give the doc of SNMPRequest class. Which has main. please check the usage you have trap receiver in that. Thanks, Prakash