Skip to content
Advertisement

Getting an exception “org.apache.maven.surefire.booter.SurefireBooterForkException: . VM crash or System.exit called?”

I am working on a Selenium Automation project which is based on Maven Cucumber + TestNg. While on run i am getting the below exception not sure but tried all the possibilities of incrementing or decrementing the Surefire versions.

Error occurred in starting fork, check output in log Process Exit Code: 1 org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?

Really wasting lot of my time here with above said issue in clearing errors but nothing worked out.

So please kindly provide me a solution , i am more desperate to know the solution.

My Configuration : JDK version : 1.8 Maven Version: tried with 3.5.4 , 3.6.3 Surefire version : tried with lower versions also 2.18, 2.19,2.22.0,2.22.2 now currently 3.0.0-M2

My Pom is given below

4.0.0 ROL ROL 0.0.1-SNAPSHOT jar

JavaScript

Console Output

JavaScript

Advertisement

Answer

In my case i had problems with my user profile which had spaces in between.

Have resolved my issue and its working fine now. The issue was related to my Profile Name which had spaces in between so changed it by removing spaces and after that even with lower versions of surefire and with latest version its working fine.

JavaScript
Advertisement