Strange Clojure library problem (dll)

I am trying to use JACOB library with Clojure using Clojure Box.

I added this to my .emacs:

(setq swank-clojure-library-paths (list "c:/dev/dlls")) 

      

C:/dev/dlls/

contains jacob-1.14.3-x86.dll

.

I added a directory .clojure

to my directory ~/

and that contains jacob.jar

.

The REPL block Clojure (System/getProperty "java.class.path")

issues:

"c:/Program Files/Clojure Box/clojure/clojure.jar;c:/Program Files/Clojure Box/clojure-contrib/clojure-contrib.jar;;c:/Documents and Settings/mac009/Application Data/.clojure/jacob.jar"

      

and

"Settings/mac009/Application Data/.clojure/jacob.jar" 

      

and (System/getProperty "java.library.path")

gives:

"c:/dev/dlls" 

      

If I start Clojure Box and release (import '(com.jacob.com Dispatch ComThread))

, the REPL just hangs.

Now for the weird part. If I kill the REPL and do "Alt-X slime" and answer "no" to "Create additional ledge - lisp? (Y or n)" and issue "(import '(com.jacob.com Dispatch ComThread))" it works ! It's even weirder that this only "works" if I first issue "(import '(com.jacob.com Dispatch ComThread)) and make the REPL hang. If I just start Clojure Box and kill / restart the REPL without first issuing" ( import '(com.jacob.com Dispatch ComThread)) "it just hangs.

Any help is appreciated.

JACOB: http://sourceforge.net/projects/jacob-project/

Clojure Box: http://clojure.bighugh.com/

+1


a source to share


1 answer


You also need to copy swank- clojure.jar to ~ / clojure.

  • Put this in ~ / .emacs:

    (setq swank- clojure -library-paths' ("c: \ dev \ dlls"))

  • Create directory C: \ dev \ dlls.

  • Copy DLL Jacob to C: \ dev \ dlls.
  • Create a directory ~ / clojure.
  • Copy clojure.jar, clojure -contrib.jar and swank- clojure.jar to ~ / clojure.
  • Start ClojureBox.


Versions:

  • ClojureBox 1.2.0
  • Yaakov-1,15-M4
+1


a source







All Articles