Specified VM install not found: type Standard VM, name jre7

Specified VM install not found - www.javaworkspace.com

Have you ever encountered this problem in Eclipse while building an ant file? Then this article is for you. Deleting and recreating the workspace is not the solution. There is an easy solution to fix this issue without recreating the workspace.

By default eclipse will automatically update the Installed JRE location with place where you have your jre installed i.e. normally it should be something like

JRE home: D:\Program Files (x86)\Java\jre7
JRE name: jre7