原来,在eclipse.c中,有查找shipped VM的代码,eclipse.exe会先查找有没有自带的JVM,有的话就用它启动: /* Find the Directory where the Eclipse PRogram is installed. */ programDir = getProgramDir(); ...
/* If the user did not specify a VM to be used */ if (vmName == NULL) { /* Determine which type of VM should be used. */ vmName = ((debug needConsole) ? consoleVM : defaultVM);