added java process managment functions