Hello,

You need to add SNMP4J.jar to your classpath too.

Best regards,
Frank

zbiggy wrote:
> Hello,
> 
> I can not run TestAgent.class.
> 
> I use:
> Linux Fedora
> jdk 1.5.0_18
> Apache Ant version 1.7.1 
> snmp4j-1.9.3d.zip
> snmp4j-agent-1.2.2.zip
> 
> ant built snmp4j-agent/dist/lib/SNMP4J-agent.jar successful (just typed in 
> ant).
> But I can not run TestAgent:
> java -cp SNMP4J-agent.jar org.snmp4j.agent.test.TestAgent
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/snmp4j/event/CounterListener
> 
> I just only want to execute TestAgent, connect to it using snmp2c client and 
> and read value using GET snmp command just to make sure it is working. What 
> I'm doing wrong?
> _______________________________________________
> SNMP4J mailing list
> [email protected]
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com

_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to