I have a .jar file that I was able to execute by double-clicking it in Finder. Today, if I try that, it won't open. Sometimes something will appear briefly on screen but disappear before I can see what it is, and then nothing happens. There are no error messages. The Console records nothing. The same thing happens whether I double-click the icon or use right-click > Open with > Jar Launcher (default) (15.0.0).
However, I find that I can open the file successfully, and with no error messages, using the terminal (
$ java -jar filename.jar).
The only thing I've done since yesterday is install Anaconda and Git. These may have added items to my PATH, but I don't think that could be the problem, since I can still open it from the command line. Since discovering the problem, I've rebooted the machine, but the problem persists.
What happened, and how do I fix it?