The Eclipse Leshan project provides libraries for building IoT solutions based OMA LWM2M and the Java programming language:
A LWM2M device management server and bootstrap server library.
A LWM2M client library.
Some device management and bootstrap server demo with web UI.
A command line tool client demo.