Java job executing example