Make java runtime configurable