Lein support
I think something about rxtx dependency doesn't get along with leiningen. Here's how I produce the error:
➜ ~ lein new serial-port-test
Created new project in: /home/sinan/serial-port-test
Look over project.clj and start coding in serial_port_test/core.clj
➜ ~ cd serial-port-test
➜ serial-port-test vim project.clj
➜ serial-port-test cat project.clj
(defproject serial-port-test "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:dependencies [[org.clojure/clojure "1.3.0"]
[serial-port "1.1.1"]
[rxtx22 "1.0.5"]])
➜ serial-port-test lein deps
Copying 3 files to /home/sinan/serial-port-test/lib
➜ serial-port-test lein repl
REPL started; server listening on localhost port 36978
user=> (use 'serial-port)
ClassNotFoundException gnu.io.CommPortIdentifier java.net.URLClassLoader$1.run (URLClassLoader.java:202)
user=>
➜ serial-port-test lein version
Leiningen 1.7.0 on Java 1.6.0_29 Java HotSpot(TM) 64-Bit Server VM
I'm not sure whether it's about lein or serial-port though.
Yep, this will be a binary-deps issue. Currently I use this stuff with cake which works very well. However, I believe lein now has (or will be getting) similar binary-deps support. Once lein 2.0 is released, I shall deprecate support for cake and switch to lein - that should be within a couple of months.
Sorry about this.
Hi, I have the same problem, there are some update about it? Thanks in advance.
Well, doing this steps I finally get working serial-port under clojure 1.5.1
1- Install librxtx-java: apt-get install librxtx-java
2- Set to the last version(1.1.2 not 1.1.0-1.1.1) of serial-port at project.clj: :dependencies [[org.clojure/clojure "1.5.1"] [serial-port "1.1.2"]]
This is all folks, Thanks.
i have a similar issue with osx, but when I attempted the prescribed fix, I ended up with a working serial-port dep, but it broke all of my other java binaries that need serial communication. I was able to fix it by putting the librxtxSerial.jnilib from the macosx 64 bit arduino.app in /Library/Java/Extensions/ hope this helps somebody.