update java build script
update cleanup script for java
psutil added.
process check is implemented