Added java version and architecture detection

Fixes #29
The issue I had is that I need to wait for the process to finish so it needs to be in a callback. That's why it's built this way.

Do you have a recommendation around that problem?