add Java environment manager

add Java environment manager