The Last.fm API bindings for java are a BSD-licensed wrapper for the Last.fm api and the Last.fm submission service (scrobbling).
It provides classes and methods to invoke Last.fm API methods as well as scrobbling songs and streaming radio from within Java applications.
<dependency>
<groupId>de.u-mass</groupId>
<artifactId>lastfm-java</artifactId>
<version>0.1.2</version>
</dependency>
compile 'de.u-mass:lastfm-java:0.1.2'
To get started, start here.
More documentation can be found in the Wiki.