JavaVM changes for mac user (andy)