I think someone asked me more or less the same thing but for Windows.
In Windows, in order to run the jar, I think it is necessary that there is a system variable that points to the java 8 path. In my PC:
I suppose there is something similar in Mac too.
Or (Windows) use a bat file (still using java 8).
Sorry if I wrote nonsense, I've only seen Macs in photos ?