Added java version and architecture detection

Fixes #29
Gotcha, that should help fix some memory issues.