throw exception when java executable is null