Adding java code for post "Java – Getting executing system architecture" on mehaul.me