Added java version and architecture detection

Fixes #29
This is never used anywhere, right?