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

前端 未结 22 1106
感情败类
感情败类 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:35

    Some time this happens when your Java folder get updated.

    Open Eclipse folder and search file eclipse.ini. Open the eclipse.ini file and check whether jre version is same as jre available in your java folder.

    I faced same problem when my jre got changed from jre1.8.0_101 to jre1.8.0_111.

    C:\Program Files\Java\jre1.8.0_101\bin to C:\Program Files\Java\jre1.8.0_111\bin

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

    Make sure both the Java version and Eclipse are belongs to same architecture.So install 64 bit java for 64 bit eclipse.

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

    On Centos 7 I fixed this problem (after a big yum upgrade) by changing my setting for vm in:

    ~/eclipse/java-oxygen/eclipse/eclipse.ini

    to:

    -vm
    /etc/alternatives/jre/bin
    

    (which will always point to the latest installed java)

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

    First

    check if you have both java 32 and 64 bit install then

    Setting Path on Windows

    Windows 8

    Drag the Mouse pointer to the Right bottom corner of the screen

    Click on the Search icon and type: Control Panel

    Click on -> Control Panel -> System -> Advanced

    Click on Environment Variables, under System Variables, find PATH, and click on it.

    In the Edit windows, modify PATH by adding the location of the class to the value for PATH, Or simply make sure that the variable name is in ALL CAPS

    If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.

    Close the window.

    Reopen Command prompt window, and run your java code.

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

    Yeah it happend to me right now. Go to Oracle site, and search for Java SDK. Make sure you use the same architeture (x86, x64) of Eclipse.

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

    Two ways to work around this .

    • Recommended way : In your eclipse.ini file make sure you are pointing -vm to your jdk installation. More on this here. Make sure to add -vm before the -vmargs section.

    • Pass in the vm flag from command line. http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JVM

    Note : Eclipse DOES NOT consult the JAVA_HOME environment variable.

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