Apparent interaction of libraries with lein

169 views
Skip to first unread message

Nico Swart

unread,
Mar 14, 2013, 8:48:05 AM3/14/13
to clo...@googlegroups.com
The Leiningen project file I use include these dependancies:

(defproject fb20try "1.0.0-SNAPSHOT"
  :description "FIXME: write description"
  :dependencies [[org.clojure/clojure "1.4.0"]
                 [org.clojure/clojure-contrib "1.2.0"]
                 [dds/ndds "1.0"]
                 [quil "1.6.0"]]
  :dev-dependencies [[swank-clojure "1.4.2"]])

[dds/ndds "1.0"] is a third part library that I installed in my local maven repository with the command

mvn install:install-file -Dfile=nddsjava.jar -DgroupId=dds -DartifactId=ndds -Dversion=1.0 -Dpackaging=jar 
 
Everything works well if  [quil "1.6.0"] is not included. If it is included, I get this error when the project is loaded:

C:\Clojure\lein\fb20try>lein repl
REPL started; server listening on localhost port 24467
user=> (use 'dyndata.model.ddsdata)
The library nddsjava.dll could not be loaded by Windows.
Make sure that the library is in your Path environment variable.
UnsatisfiedLinkError no nddsjava in java.library.path  java.lang.ClassLoader.loadLibrary (ClassLoader.java:1738)

Can anyone explain why a dll is referenced at all ?

Thanks
Nico

Akhil Wali

unread,
Mar 14, 2013, 10:13:02 AM3/14/13
to clo...@googlegroups.com

The error looks like its coming from java rather than leinengen.

And the error might be due to quil loading  some dll in the jre which is missing. Try reinstalling java is all I can say at this point.
 

--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jim foo.bar

unread,
Mar 14, 2013, 10:24:31 AM3/14/13
to clo...@googlegroups.com
Could it be that you're using lein1 instead of lein2? Is lein1 still
actively maintained? In any case I suggest you upgrade to lein2...

Jim

Michael Klishin

unread,
Mar 14, 2013, 10:26:30 AM3/14/13
to clo...@googlegroups.com

2013/3/14 Nico Swart <jns...@gmail.com>

Can anyone explain why a dll is referenced at all ?

One of the libraries quil uses requires a native library which is either not provided in the JARs or cannot be
loaded.

You need to locate that .dll and specify path to it via the java.library.path JVM option.
for how to specify JVM options from project.clj.

The above assumes the .dll is a third party library and not supposed to be shipped with JDK.
--
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin
Reply all
Reply to author
Forward
0 new messages