I have made a desktop application in Java (using JDBC and Swing) using Eclipse. I want to make a shortcut to this application (an icon). When the icon is double clicked, the application will run.
How to do it?
Deploy the app. using Java Web Start. Not only does it have a simple system for installing desk-top and menu item shortcuts (on supported OS) for an app. with icons, but also offers the IntegrationService
that allows the shortcuts to be examined/installed programmatically.
For more details see this answer. The 2 icons on the right hand side (JotPad & StarZoom) were installed by JWS.