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.
Advertisement
Answer
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.