I updated java and eclipse does not work

前端 未结 10 906
情书的邮戳
情书的邮戳 2021-01-03 21:20

I updated my JRE today 23.06.2012, and after that eclipse will no longer start. When I double click to start up eclipse the splash screen appears like a camera flash and th

相关标签:
10条回答
  • 2021-01-03 21:54

    USING THE LATEST JAVA UPDATE TOOL.

    Let say you updated thru http://java.com/en/download/installed8.jsp then you just ran down thru the update process of Java and just next next the update process of Java then opening up eclipse you encountered the same issue here.

    To fix this go to Environment Variables of Windows and check the "Path" variable you could notice that the Java update process added an entry similarly like this "C:\ProgramData\Oracle\Java\javapath" remove this and add "JAVA_HOME" if you have one or the location of your Java. Also note that you must enter at the start of the "Path" environment.

    This happens to me and removing the added entry of Java update resolve the issue and adding also the -vm and path of the Java in the eclipse.ini.

    {Sorry don't have any screenshots to prove it}

    0 讨论(0)
  • 2021-01-03 21:58

    check your JAVA_HOME environment variable. Does it point to the new location. Also see log file generated as a result of the crash

    0 讨论(0)
  • 2021-01-03 22:00

    I had the same challenge after i updated from java . After searching the web. I used this simple solution. Find your eclipse installation direction. Mine was under C:\Users\adefemi\eclipse\jee-neon\eclipse

    Then open ecliipse.ini, go to the line that looks like this one C:/Program Files/Java/jre1.8.0_144/bin

    Change the version name accordingly. For instance mine was previously C:/Program Files/Java/jre1.8.0_121/bin

    That was all i had to do and eclipse started opening again.

    0 讨论(0)
  • 2021-01-03 22:02

    check if the java\bin path is added in the path and inside the eclipse installation folder, there is a file called eclipse.ini and check if the vmargs are added like below.

    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms512m
    -Xmx1024m
    
    0 讨论(0)
  • 2021-01-03 22:02

    Once Java updates are installed on your machine edit the eclipse.ini file to update the latest jdk location.

    In MacOS,

    1. Right click on Eclipse App icon.
    2. Click Show Package Contents.
    3. Go to Contents/Eclipse.
    4. Open eclipse.ini file.
    5. Edit the -vm /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/jre/bin to point to the latest.
    6. Save and close eclipse.ini.

    Now start Eclipse application and the error got fixed.

    0 讨论(0)
  • 2021-01-03 22:04

    I just added this line to the eclipse.ini file

    -vm
    C:\Program Files\Java\jdk1.7.0_03\bin\javaw.exe
    

    The solution on my blog and it is now running successfully.

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