I have java installed, and I have the same problem
You might try this : https://www.wikihow.com/Run-a-.Jar-Java-File#On_Mac_sub
I have Java on Mac. But, it has a different problem than what it shows on that website, leeadama.
Your giving no information at all. What is the problem that you are having ?