all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

* Re: Help with Emacs+Slime+Clojure config
       [not found] <mailman.5895.1240501241.31690.help-gnu-emacs@gnu.org>
@ 2009-06-10 22:46 ` radu.floricica
  0 siblings, 0 replies; 2+ messages in thread
From: radu.floricica @ 2009-06-10 22:46 UTC (permalink / raw)
  To: help-gnu-emacs


It's kind of an old question, but for the sake of the next people
stumbling on this page:

(add-classpath "file:///c:\\clojure\\")  -  it's a clojure thing so
works everywhere, including in emacs.
(System/getProperty "java.class.path") - very good for debugging.



^ 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 --
2009-04-23 13:56 Help with Emacs+Slime+Clojure config Robert Campbell
     [not found] <mailman.5895.1240501241.31690.help-gnu-emacs@gnu.org>
2009-06-10 22:46 ` radu.floricica

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.