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

  • SEARCH
  • Home
  • 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 7550031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:06:35+00:00 2026-05-30T10:06:35+00:00

After upgrading Leiningen (from v1.6 to v1.7) with lein upgrade command lein swank stopped

  • 0

After upgrading Leiningen (from v1.6 to v1.7) with lein upgrade command lein swank stopped working with error message:

Exception in thread "main" java.lang.NoClassDefFoundError:  
Caused by: java.lang.ClassNotFoundException:  
[...] 
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class:  .  Program will exit.

Since I tried it from command line, I believe Emacs configuration doesn’t matter in this case. So I tried to re-install Leiningen completely. What I’ve done (using suggestions from here and error messages):

rm -R ~/.m2
# rm ~/.lein/plugins/*  
lein self-install

(I used second line on second reinstallation only, so it is here for the sake of completeness)

Then I created new project and installed lein-swank plugin, since, as far as I understand, it is recommended way at the moment:

lein new test-project
lein plugin install swank-clojure 1.4.0  # I tried earlier version (1.3.2) too

And finally started lein swank with:

cd test-project
lein swank

But got same error as before.

So my questions are:

  1. How to fix this problem?
  2. Do I reinstall Leiningen correctly or some steps are missing?

UPD. Here’s project.clj generated with new project:

(defproject test-project "1.0.0-SNAPSHOT"
   :description "FIXME: write description"
   :dependencies [[org.clojure/clojure "1.3.0"]])
  • 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-05-30T10:06:36+00:00Added an answer on May 30, 2026 at 10:06 am

    Does the swank-clojure troubleshooting page help:

    Troubleshooting

    Currently having multiple versions of swank-clojure on
    the classpath can cause issues when running lein swank or lein
    jack-in. It’s recommended to not put swank-clojure in your
    :dev-dependencies but run lein plugin install to have it installed
    globally for all projects instead. This also means that people hacking
    on your project won’t have to pull it in if they are not Emacs users.

    It’s also possible for some packages to pull in old versions of
    swank-clojure transitively, so check the lib/ directory if you are
    having issues. In particular, Incanter is known to exhibit this
    problem. Judicious use of :exclusions make it work:

    :dependencies [[incanter "1.2.3" :exclusions [swank-clojure]]]
    

    Since swank-clojure 1.3.4, having versions of clj-stacktrace older
    than 0.2.1 in your project or user-level plugins will cause Unable to
    resolve symbol: pst-elem-str errors. Keep in mind that user-level
    plugins in ~/.lein/plugins are uberjars in Leiningen 1.x, so it’s
    possible that one of your plugins (such as lein-difftest before
    version 1.3.7) contains an old clj-stacktrace even if it doesn’t have
    its own file there. Specifying a newer version should be enough if
    you’re having trouble:

    :dependencies [[clj-stacktrace "0.2.4"]]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After upgrading from Xcode 4.2 to Xcode 4.3, the instruments command line tool fails
After upgrading WordPress, TinyMCE Excerpt stopped working, and so did the excerpt code within
after upgrading from grails 1.3.7 to 2.0.1 i'm getting follwong strange exception when validating
After upgrading working folder from svn 1.6 to 1.7, all projects are linked to
After upgrading to Android 2.3.4, I am getting following exception: javax.net.ssl.SSLException: Read error: ssl=0x*:
After upgrading a working project from EF 4.0 to 4.1, I am now receiving
After upgrading from 1.4.2 to 1.5.1 my google analytics ecommerce tracking isnt working. Google
After upgrading from Spring 3.0.0.M4 to 3.0.0.RC1 and Spring Security 3.0.0.M2 to 3.0.0.RC1, I've
I noticed after upgrading from 4.2 to 4.3.1 that there is no longer a
We are getting this error after upgrading to NHibernate 2.1. [QueryException: Cannot simultaneously fetch

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.