I developed a class that uses the Java AdventNet Snmp API. In that class, I use the SnmpTarget class. I put in my classpath the path to AdventNetSnmp.jar and AdventNetLogging.jar. But when I execute the main method of my class, I have the following error : Exception in thread "main" java.lang.NoClassDefFoundError: com/adventnet/snmp/beans/SnmpTarget at com.ctm.snmp.SnmpGetSubtree.getIndexes(Unknown Source) at com.ctm.snmp.SnmpGetSubtree.main(Unknown Source)
Could you tell me what is the cause of this error ? Thanks...
the class is in root of jar package, could be found only load the package, if in your IDE not work, you could open the JAR and copy the SnmpTarget.class to */snmp2/ directory (in the same jar) for example.
regards, Gustavo
Leave a comment on super_elo's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic