build: support windows and get version of existing java SDK.