How do I check java console log.?

12k Views Asked by At

I am running java application and because of some error it gets closed, I want to check the error in log. How can I reopen java console with that log or is there any other way to check the log of java console.?

2

There are 2 best solutions below

0
Abhishek On

Try printing something on the console.
Eg:System.out.println("Program Completed").

0
P Punam On

Put your code in try catch block, and print your exception in catch block.