Java demo application