adding java process toy code