Fatal error by Java runtime environment

前端 未结 12 2166

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:23

    Another possible reason (for future references): I had accidentally copied in a main method in my code, causing Eclipse to recognize the project as a java application, thus launching it with that configuration.

    To solve it I went into Run > Run Configurations... and then changed from my presumed main in java application to the main activity of my android application simply by choosing it in the left column.

提交回复
热议问题