How do I add my own button in the Windows 11 file right-click menu?

LoveC 21 Reputation points

Hello everyone! I have a problem,I have many "jar" file here. These files can only be started through java programs. I need to start this program through the cmd command("java -jar filename") every time I start.I think it's too complicated,Now I want to add an option, "Open via java8", in the right-click menu of win11,How can I change it?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
3,520 questions
No comments
{count} votes