Just installed Windows 10 and Eclipse no more starts

后端 未结 8 915
醉酒成梦
醉酒成梦 2021-01-12 02:37

I just upgraded from Windows 8 to Windows 10 (both 64-bit) and my previous Eclipse Juno with ADT-plugin for Android development is no longer starting.

All I can see

相关标签:
8条回答
  • 2021-01-12 02:50
    Retain single version of java and uninstall all other versions
    and update the eclipse.ini text file as below but change the java path and versions appropriately.
    
    
    
    
    -startup
    plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
    -product
    org.eclipse.epp.package.java.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    256M
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    -vm C:\Program Files\Java\jdk1.6.0_35\bin\javaw.exe
    -vmargs
    -Dosgi.requiredJavaVersion=1.6
    -Xms40m
    -Xmx1024m
    
    0 讨论(0)
  • 2021-01-12 02:52

    You don't need to uninstall java. Just remove the following line from your environment(system) variables, which will be in starting of path variable. Windows 10 is keeping a copy of all your program files in ProgramData folder location .To confirm, Check the java version from your command line before and after change. It worked for me...

    "C:\ProgramData\Oracle\Java\javapath;"

    0 讨论(0)
  • 2021-01-12 02:54

    in the eclipse.ini file just add this line:

    --add-modules=java.se.ee

    after the --vmargs line

    0 讨论(0)
  • 2021-01-12 02:59

    I solved this problem by first reinstalling java, then removing PATH variable "C:\ProgramData\Oracle\Java\javapath" and resetting the PATH variable for JDK. steps for setting path variable:

    1. go to control panel
    2. double click "system"
    3. click on "Advanced system setting"
    4. click on "environment variable"
    5. select "path" and click on "edit"
    6. remove "C:\ProgramData\Oracle\Java\javapath"
    7. reset JDK path as "C:\Program Files\Java\jdk1.8.0_65\bin" and "C:\Program Files\Java\jdk1.8.0_65\lib\tools.jar"
    8. click ok
    9. restart eclipse. resolved. Here my PC java version is 1.8.0_65. Your may be different. But set path as your JDK version.
    0 讨论(0)
  • 2021-01-12 03:04

    I was also having the same problem.I just checked my java version as stated above it was showing 1.8.0 so I just removed the "C:\ProgramData\Oracle\Java\javapath;" form the system variable and it solved my problem.

    0 讨论(0)
  • 2021-01-12 03:09

    Solved.

    Just uninstalled completely Java and JDK (also manually deleted "Java" folder in "C:\ProgramFiles") and downloaded and reinstalled the very same version of JDK Windows x64 from here, and everything works again now.

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