首页 > 代码库 > Java入门到精通——调错篇之Eclipse No Java virtual machine was found after searching the following locations

Java入门到精通——调错篇之Eclipse No Java virtual machine was found after searching the following locations

一、错误现象。

       在一次启动Eclipse的时候弹出了下面的错误

技术分享

二、错误原因

       原因是没有找到javaw.exe文件的路径。

三、解决方案

       在eclipse根目录下找到eclipse.ini加入下面一句话

             -vm

            D:\Java\jdk1.8.0_25\bin(jdk的bin目录路径)

Java入门到精通——调错篇之Eclipse No Java virtual machine was found after searching the following locations