Java sample app