Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9045805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:27:03+00:00 2026-06-16T11:27:03+00:00

I have been unable to get nREPL to work with SWT on Mac OS

  • 0

I have been unable to get nREPL to work with SWT on Mac OS X.

To reproduce the problem, create a new SWT project with the following project.clj file:

(defproject swttest "0.1.0"
  :description "Foo"
  :dependencies [[org.clojure/clojure "1.4.0"]
                 [org.eclipse.swt/org.eclipse.swt.cocoa.macosx.x86_64 "3.8"]]
  :jvm-opts ["-XstartOnFirstThread"]
  :repositories [["swt-repo" "https://swt-repo.googlecode.com/svn/repo/"]])

Then launch the REPL using “lein repl”. Finally, run the following command:

user> (org.eclipse.swt.widgets.Display.)

The following error occurs:

SWTException Invalid thread access  org.eclipse.swt.SWT.error (:-1)

How can I get this to work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T11:27:04+00:00Added an answer on June 16, 2026 at 11:27 am

    Found the solution. Instead of using nREPL, run it in a “dumb” REPL, by modifying the project.clj file to include a “dumbrepl” alias, like so:

    (defproject swttest "0.1.0"
      :description "Foo"
      :dependencies [[org.clojure/clojure "1.4.0"]
                     [org.eclipse.swt/org.eclipse.swt.cocoa.macosx.x86_64 "3.8"]]
      :jvm-opts ["-XstartOnFirstThread"]
      :aliases {"dumbrepl" ["trampoline" "run" "-m" "clojure.main/main"]}
      :repositories [["swt-repo" "https://swt-repo.googlecode.com/svn/repo/"]])
    

    Then run:

    > lein dumbrepl
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have only recently started using CakePHP and have been unable to get validation
I'm importing 15000 users from virtuemart into magento but have been unable to get
I have been unable to get my UIWebView to change location based in javascript.
I have been unable to get my single-portfolio.php template to behave properly. So I
In .Net 4.0 I have been unable to get a certificate from a custom
I have a UITextView within a UITableView cell. I have been unable to get
I have been unable to get my index.xhtml file to load properly, and I
I'm adding Google Oauth2 to a Rails app, but have been unable to get
For whatever reason, I have been unable to get any table cells to have
I have been unable to get Riak working under Ubuntu 9 due to many

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.