Added java version and architecture detection

Fixes #29