Lib: Added java version and architecture detection

Fixes #29
Closes #33