Java support for the star demo.