How do I fix No Java Virtual Machine in Eclipse?

How do I fix No Java Virtual Machine in Eclipse?

The steps to fix the Eclipse “No Java Virtual machine was found” error are: Edit the eclipse-inst. ini file. Add the -vm flag. Point the -vm flag to the JDKbinjava location. Save the file. Re-run the Eclipse installer.