Home java Process finished with exit code -1

Process finished with exit code -1




After executing a program in IntelliJ IDEA, “Process finished with exit code -1 ” appears in the console. It seems to be returning: “Process finished with exit code 0 “. Is this normal or is there something wrong?

P.S. The program works stably.

Answer 1, authority 100%

Something went wrong, general rule for exit code:

1) error code 0 – the program ended successfully,

2) error code & gt; 0 – the program failed, but for the expected reason (the user launched the program with incorrect arguments, it could not find the configuration file or connect to the database)

3) error code & lt; 0 – the program ended unsuccessfully for an unexpected reason (out of memory, it was killed by the OS, etc.)

In all likelihood, the program encountered some system errors at the time of exiting (an out of memory error appears, a system error of deleting temporary files, etc.). Still, it’s better to see why this is happening, maybe it does not delete temporary files behind itself or will start crashing even earlier.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions