Java Mac
Java Jar Application Crash fix on MacOSX
May 14, 2016
0
, ,
Java & Coding

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

 

javaws
#####################################################

 

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.

About author

ZERIN

CEO & Founder (BdBooking.com - Online Hotel Booking System), CEO & Founder (TaskGum.com - Task Managment Software), CEO & Founder (InnKeyPro.com - Hotel ERP), Software Engineer & Solution Architect

How to Run PHP Specific Version for a PHP Script in MacOSX?

Suppose you have a php CLI Script that runs only o...

Read more

How To Install SAAS on Mac

SaaS is very important to generate CSS with variab...

Read more

How to Code Signing to Your Java Project

Recently I was developing an App using Java that w...

Read more

There are 0 comments

Leave a Reply

Your email address will not be published. Required fields are marked *