Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "Process finished with exit code 1" mean in intellij-idea?

I got the error "Process finished with exit code 1" when I was running my Java code. I am using Intellij IDEA 2018.3. Below is the error log I got.

screenshot of error

like image 534
YWicky Avatar asked Oct 17 '25 09:10

YWicky


2 Answers

To get more information on the exit code try putting a try catch around the SpringApplication.run() function like this:

try
{
    SpringApplication.run(Application.class, args);
}
catch (Throwable throwable)
{
    System.out.println(throwable.toString());
    throwable.printStackTrace();
}
like image 99
JaredCS Avatar answered Oct 19 '25 00:10

JaredCS


While running a Java application in Intellij Idea, after the program execution, JVM prints the exit code to the console. If the program terminates without any exception, exit code 0 is printed. Otherwise, any signed integer may be outputted.

like image 44
r-sunny Avatar answered Oct 18 '25 22:10

r-sunny