

> Process 'command '/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1 When I execute the java file in terminal, It shows me what I wantīut when I run the file on intellij, It just shows "non-zero exit code"Īlso stack trace doesn't give useful information Execution failed for task ':Playground.main()'. I want to see "ArithmeticException" and in what line it did occur. I made a ArithmeticException on purpose by divide 3 by zero.
