I wrote a JavaFX program which also utilizes JSON. When run at startup, the try catch around the JSON parsing piece of the code throws an exception. I can't see the exception printed in the console but I made a graphical alert that pops up when the exception occurs. Any idea why this would happen even thought the program runs normally if run manually? How can I solve this?
the answer was simple as usual. The scripts that were tested in order to run the jar at startup were running it from another directory. I used crontab plus a shell script where I 'cd'ed to the jar directory then ran the jar file. Before, I only ran the jar file using its full path, but apparently I have to cd there in order for it to find the JSON files.