examples: add java

I know it's not quite Java, it's Scala, but with this project I'm able
to generate a standalone jar.