Added java version and architecture detection

Fixes #29
This one is required because what matters for the stack size is not the os architecture but the JRE architecture that's why I detect it here