Clean stopping of the platform

Fixing problem of lost STDIN
Adding Java profile to regenerate java jars