eclipse won't start - no java virtual machine was found

前端 未结 22 1105
感情败类
感情败类 2020-12-12 16:58

Eclipse was running fine yesterday (and has been since I installed it about a year ago). Now all the sudden I\'m getting the following error on startup:

\"A          


        
相关标签:
22条回答
  • 2020-12-12 17:17

    eclipse.ini:

    --launcher.defaultAction  
    --launcher.XXMaxPermSize  
    256M  
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize<br/>
    256m  
    --launcher.defaultAction  
    openFile  
    -showsplash  
    org.eclipse.platform
    -vm
    C:\Program Files\Java\jdk1.7.0_21\jre\bin\server\jvm.dll<br/>
    --launcher.XXMaxPermSize  
    256m  
    --launcher.defaultAction  
    openFile  
    -vmargs  
    -Dosgi.requiredJavaVersion=1.7  
    

    That worked for me. It doesnt have to be on the beginning, but surely it cant be at the end of the file.

    0 讨论(0)
  • 2020-12-12 17:17

    This happened to me also. And I found the javaw.exe in C:\Windows\System32 got deleted after the windows update. Copied one more time and Eclipse started all fine.

    0 讨论(0)
  • 2020-12-12 17:17

    you can also copy your JRE folder to eclipse directory and it will work corectly

    0 讨论(0)
  • 2020-12-12 17:17

    My solution is Include JDK's "bin" Directory in the PATH

    To edit the PATH environment variable in Windows 7/8/10:

    1. Launch "Control Panel" ⇒ (Optional) System and Security ⇒ System ⇒ Click "Advanced system settings" on the left pane.
    2. Switch to "Advanced" tab ⇒ Push "Environment Variables" button. Under "System Variables" (the bottom pane), scroll down to select "Path" ⇒ Click "Edit...".
    3. Copy the JDK bin directory from JAVA folder and paste to "Edit..."
    0 讨论(0)
  • 2020-12-12 17:20

    I came across same issue y'day, with PATH etc configured correctly. It can be opened from command line, just now working by a double click.

    And it was working now, by just "Run as administrator" :)

    0 讨论(0)
  • 2020-12-12 17:27

    I had the same problem. I my case it was a program i've install that had destroyed the PATH env variable.

    so check your PATH environment variable.

    0 讨论(0)
提交回复
热议问题