1. 程式人生 > >Eclipse won't build/run because it's "missing VM"

Eclipse won't build/run because it's "missing VM"

I am getting this error while build:
Specified VM install not found: type Standard VM, name j2sdk1.4.1_01

This happens to me every time I try to bring in a project configured for one machine to another. And don't even try creating a windows shortcut from the real jdk to the name it's complaining about -- chyeah, right. So, instead of deleting the files ('coz some of them might take a while to configure), you can open them up (your project *launch files) and change the VM_INSTALL_NAME to the entry on your box (not the full path, mind you). I believe that this entry is a reference to something in .plugins/org.eclipse.jdt.launching/libraryInfos.xml ... but could be wrong. Maybe someday I'll pin it down further.

Try deleting these files:
.../.metadata/.plugins/org.eclipse.debug.core/.launches/*.launch