Fatal error by Java runtime environment

前端 未结 12 2132

I am executing a junit test case

I got the following error,

A fatal error has been detected by the Java Runtime Environment:

Internal Error (classFi         


        
相关标签:
12条回答
  • 2020-12-03 03:35

    I resolved this by

    • Quit eclipse
    • Delete the bin and gen directories in your project
    • Start eclipse
    • Rebuild your project
    0 讨论(0)
  • 2020-12-03 03:39

    Do you run on a supported platform (Windows, one of a few Linux versions?) If not, that is the first to try.

    If you ARE on a supported platform, then downgrade to _17 and see if THAT helps.

    Then make a bug report to Sun and hope they will fix it someday (unless you want to give them money for fixing it faster).

    0 讨论(0)
  • 2020-12-03 03:43

    Another possible explanation: hardware failure. Ruled out if you can reproduce the error on different machines.

    0 讨论(0)
  • 2020-12-03 03:46

    Go to Run As -> Run Configurations->classpath->BootStrap Entries Click on Advance, then Add Library and select JRE System Library as a first entry. Apply and Run...

    0 讨论(0)
  • 2020-12-03 03:48

    Go to Run As -> Run Configurations... and select the configuration you are using.
    Select the Class Path tab and select BootStrap Entries.
    Click on Advance, then Add Library and select JRE System Library.
    Bring it up and make it the first entry in the BootstrapEntries List.

    Apply and Run...

    0 讨论(0)
  • 2020-12-03 03:48

    This could be a JVM bug; see @Zac's answer. But it could also be that your junit test case is causing a corrupted bytecode file to be loaded. Try rebuilding all your .class files, and if that does not fix the problem try refetching any external libraries that your code depends on.

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