unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Help with Emacs+Slime+Clojure config
@ 2009-04-23 13:56 Robert Campbell
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Campbell @ 2009-04-23 13:56 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-10 22:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5895.1240501241.31690.help-gnu-emacs@gnu.org>
2009-06-10 22:46 ` Help with Emacs+Slime+Clojure config radu.floricica
2009-04-23 13:56 Robert Campbell

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).