原來,在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);