SNMP4J - The Object Oriented SNMP API for Java Managers and Agents
SNMP4J is an enterprise class free open source and state-of-the-art SNMP implementation for Java SE 8 or later*. SNMP4J supports command generation (managers) as well as command responding (agents). Its clean object oriented design is inspired by SNMP++, which is a well-known SNMPv1/v2c/v3 API for C++ (see https://agentpp.com).
* SNMP4J 3.1.0, SNMP4J-Agent 3.2.0, and SNMP4J-AgentX 3.0.0 or later require Java SE 9 or later runtime. SNMP4J-SMI and SNMP4J-SMI-PRO require Java 8 or later compiler and runtime.