fixed bug where java was not found