How to double-click JAR file to open it?

This works in Debian because they ship a .desktop file. I’m guessing Fedora does this too but I can’t seem to find which package it’s in. I installed java-latest-openjdk and there was no desktop file included.

It looks like you need to create the launcher:
Running a Java program from Nautilus - #5 by doct0rHu - Q&A - Clear Linux OS Forum