Add Java Run Environment Auto Detect Function

Add Java Run Environment auto detect function on first start up.