some java environment stuff for mm