UPnP Port Forwarding for Java couldn't get any easier!
WaifUPnP is an extermely lightweight Java library that allows you to
It's as easy as
Java 6 or newer
WaifUPnP is a very basic implementation of UPnP, that only scans for the default gateway, and can only open/close ports.
While this is enough for most people, if you need a full implementation of UPnP, you should take a look at Cling.