Eclipse: Java was started but returned exit code -1073741571

后端 未结 4 1859
北海茫月
北海茫月 2021-01-15 12:08

Eclipse is closing while loading any XML layout with this message Java was started but returned exit code -1073741571

my eclipse.ini

相关标签:
4条回答
  • 2021-01-15 12:32

    Sometimes means that the workspace is corrupted.

    Create a fresh workspace and try a XML file.

    0 讨论(0)
  • 2021-01-15 12:35

    I had the same issue. What I did to overcome is very simple. I just downloaded a JRE and put it in to the root folder of eclipse since eclipse by default looks for the jre in that location. That's it....

    0 讨论(0)
  • 2021-01-15 12:47

    Thanks everyone for sharing solutions with me it seem that I had corrupted xml ( I am still not sure what corrupted means but it was forcing the IDE to crash) here is a snippet:

    <com.android.example.EndlesScrollView...
    
        <FrameLayout...
            <LinearLayout...
    

    Each time I tried to use Graphical layout view in eclipse the IDE crashes, All I did was to delete that XML totally and re-create it from scratch, it seems something wrong with the XML Tags which preventing the Graphical layout from correctly displaying the correct UI.

    0 讨论(0)
  • 2021-01-15 12:50

    I noticed that the VM listed is: C:\Windows32\System\javaw.exe which I believe is the Java 7 installed version. My configuration is using one of the earlier installed JVMs (from my Eclipse.ini):

    -vm
    C:\Program Files\Java\jdk1.6.0_14\bin\..\jre\bin\client\jvm.dll
    

    Maybe you should update Eclipse to use a 1.6 version of Java to run. From the Eclipse readme.html (found in the Eclipse install directory):

    Specifying the Java virtual machine
    

    Here is a typical Eclipse command line:

    eclipse -vm c:\jdk1.4.2\jre\bin\javaw
    

    Tip: It's generally a good idea to explicitly specify which Java VM to use when running Eclipse. This is achieved with the "-vm" command line argument as illustrated above. If you don't use "-vm", Eclipse will look on the O/S path. When you install other Java-based products, they may change your path and could result in a different Java VM being used when you next launch Eclipse.

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