unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Robert Campbell <rrc7cz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Help with Emacs+Slime+Clojure config
Date: Thu, 23 Apr 2009 15:56:44 +0200	[thread overview]
Message-ID: <b57c4e1c0904230656m2be2c623q3be7dc91e58d7b76@mail.gmail.com> (raw)

Hey guys,

I'm completely new to Emacs. I've started using it because it appears
to be the best environment for developing in Clojure. To get started,
I downloaded Clojure Box - http://clojure.bighugh.com/ - which is
exactly like LispBox, but obviously for Clojure. It prewires Emacs,
Slime, Swank-Clojure, Clojure-Mode, nice launcher for Windows, etc.

My problem is with adding libraries (Jars) to my classpath. I created
my .emacs file:

(setq swank-clojure-extra-classpaths
	'())	
(add-to-list 'swank-clojure-extra-classpaths
          "E:/Program Files/Clojure Box/compojure/compojure.jar")
(add-to-list 'swank-clojure-extra-classpaths
          "E:/Program Files/Clojure Box/lib/postgresql-8.3-604.jdbc4.jar")
(add-to-list 'swank-clojure-extra-classpaths
          "E:/Program Files/Clojure Box/lib/servlet-api-2.5-20081211.jar")
(add-to-list 'swank-clojure-extra-classpaths
          "E:/Program Files/Clojure Box/lib/jetty-6.1.16.jar")
(add-to-list 'swank-clojure-extra-classpaths
          "E:/Program Files/Clojure Box/lib/jetty-util-6.1.16.jar")

The problem is that the Compojure library doesn't appear to be added
to my classpath correctly; I get a "ClassNotFoundException"

On the flip side, I am perfectly able to use my PostgreSQL driver with
the clojure-contrib/sql library.

So, does anybody have any ideas why the PostgreSQL jar would be added
to the classpath correctly, but not Compojure? To check for typos I
copy/pasted the actual string into Windows Explorer and it resolved to
the jar properly. If there's no obvious mistakes, how would I begin to
troubleshoot this?

I appologize if this shouldn't be asked in the Emacs forum, but it
isn't really a Clojure issue since it deals with booting up the JVM
with the proper classpath.

Thank you,

Rob




             reply	other threads:[~2009-04-23 13:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-23 13:56 Robert Campbell [this message]
     [not found] <mailman.5895.1240501241.31690.help-gnu-emacs@gnu.org>
2009-06-10 22:46 ` Help with Emacs+Slime+Clojure config radu.floricica

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b57c4e1c0904230656m2be2c623q3be7dc91e58d7b76@mail.gmail.com \
    --to=rrc7cz@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).