How to create link on website that open JAVA desktop app?

can someone help me with this question? How to create link on website that open an java desktop app?

It should work like magnet links that open torrent programs when you click on them in your browser.

What do I need to do to create that link? I need to do something inside the java app too?

Edit : clarifying my question, I want a link that start the program on the desktop itself (just like Steam/Magnet links do), not oppening the app inside the website or inside the browser.

1 answer

  • answered 2019-02-10 13:46 George Z.

    Speaking of Windows OS, you will need to follow this link: Registering the Application Handling the Custom URI Scheme

    That's how steam does it (again, talking about Windows):

    steam

    steam2

    But how are you going to do it, when your desktop app does not use any installer (i suppose)?

    The best you can do, is to write these registries when you first time launch the app,so the answer is probably in this link.