Added java version and architecture detection

Fixes #29
Let's make this a `var`, like the other require calls.