Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Drag and drop to desktop icon on Windows

935284May 5 2012 — edited May 8 2012
My Java application is bundled in a JAR (with a MAIN). On Windows (XP, Server 03+ and Windows 7) I would like to have it so the user can drag and drop files and/or folders onto the JAR's icon on the desktop and have it launch its MAIN passing in a list of java.io.File objects representing the dropped item(s).

Is this possible? Do I need to turn my JAR into an EXE and if so can someone recommend an EXE generator tool that supports this drag-n-drop functionality?

TIA,

-Noah

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 5 2012
Added on May 5 2012
1 comment
1,472 views