r/Clojure • • Jun 07 '25

Announcement: Clojure Desktop Toolkit

There's a new way to build graphical interfaces using Clojure:

  • Clojure Desktop Toolkit - A complete cross-platform desktop user interface toolkit with native platform widgets based on Eclipse SWT, plus an up-to-date Maven repository with all the latest SWT releases.

    • Full coverage of the latest SWT API.
    • It's written in itself; you can extend it the same way it's written.
    • Developer tutorial / documentation.
    • The goal is to be batteries included!  Please let me know how close I've gotten so far!

This is really new, but the basics are well exercised.  See the README for details.  I welcome feedback and suggestions!

127 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/daver Jun 08 '25

Is your focus distributing SWT or pairing SWT with Clojure Desktop Toolkit? If the latter, then I would think an uberjar with all of it, uploaded to Clojars would be the way to go, no? You could also have the custom SWT repository for people that want just SWT for some reason.

2

u/nimportfolio Jun 09 '25

SWT is packaged as multiple implementations of the exact same classes, linked to different platform natives. Correct me if I'm wrong, but I believe that including all of these creates a situation where the last version of the a SWT class added to the uberjar wins, making the exact platform native library that will be linked in the uberjar random?

Thanks for the suggestion. If this would work, I agree it would be nicer.

2

u/daver Jun 09 '25

Ah, I see. OK, yea, maybe it isn't possible.