Recently I wrote an Java Jar Application that was running properly in Windows PC but it was not running on Mac.
I did check every line of code but could not figure out the issue.
Then I ran System Preference, from inside clicked Java >> Advanced .
#####################################################
In the Debugging >> Enable tracing — Checked it ON
Enable logging — Checked it ON
Show applet lifecycle exceptions — Checked it ON
In the Java console
Show console — Checked it ON
#####################################################
Now when I ran the Java Jar Application, I was getting the log details in the java Web Console.
Finally I have found that, when my code reaches this command (long startTime = System.currentTimeMillis();) there is nothing on the web console anymore as the application has been crashed.
Then at the top I just added the below header code, re-run the app & found that my app does not crash anymore.
import java.lang.*;
Now, life is beautiful.
There are 0 comments