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 957951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:47:17+00:00 2026-05-16T00:47:17+00:00

I setup emacs slime/clojure as written here . When I run (doseq [p (.getURLs

  • 0

I setup emacs slime/clojure as written here.

When I run (doseq [p (.getURLs (java.lang.ClassLoader/getSystemClassLoader))] (println (.getPath p))) to get classpath, I get the following.

/Users/smcho/.swank-clojure/clojure-1.1.0-master-20091202.150145-1.jar
/Users/smcho/.swank-clojure/clojure-contrib-1.1.0-master-20091212.205045-1.jar
/Users/smcho/.swank-clojure/swank-clojure-1.1.0.jar

How can I add classpath for emacs/slime for clojure?

  • 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-16T00:47:18+00:00Added an answer on May 16, 2026 at 12:47 am

    The procedure differs depending on whether you are using slime-connect to start slime (by connect to a remote swank server, created with lein swank, for example) or you are starting slime using M-X slime.

    If you’re using slime-connect, you’ll need to modify the classpath of the java process that is running the swank server. If you’re starting the swank server using lein swank, simply add the jars you want to be part of your classpath to the project’s lib directory.

    On the other hand, if you’re starting slime using M-X slime, the following elisp code will do the magic for you (just place it in your ~/.emacs file).

    (eval-after-load "swank-clojure"
      '(progn
         (add-to-list 'swank-clojure-classpath
              "/Users/smcho/.clojure/")
         (add-to-list 'swank-clojure-classpath
              "/Users/smcho/.clojure/blah.jar")))
    

    This will add /Users/smcho/.clojure/ and /Users/smcho/.clojure/blah.jar to the classpath. (Please note that you’ll either need to restart emacs or reload the .emacs file: type M-X load-library and then type .emacs on the next prompt.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a clojure noob trying to get emacs & slime set up. There doesn't
I am using emacs + slime for clojure development. Recently we got a new
I have setup emacs -daemon to run on login to Gnome and associated emacsclient
I'm looking to setup emacs to allow me to use perforce without having to
I've tried putting (setq term-setup-hook 'vip-mode) in my .emacs file but this only seems
I'm really trying to switch to emacs, but learning to setup the environment is
I have been using ClojureBox with great success to learn both Clojure and emacs.
I followed this guide: http://wiki.unto.net/setting-up-clojure-and-slime Which walked me through the steps of building Clojure
When trying to M-x slime-connect to a swank server running in a clojure app
I can't use auto indentation function on emacs + slime + sbcl when I

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.