I have a JAR with a class Proto$Event.class (compiled from Protocol Buffer). Now I want to use it in a Clojure Project.
I include the JAR on my clojure project following this steps.
But I am not be able to run this code in clojure:
(ns protocolbuf-test.core
(:import
(com.foo.bar Proto$Event)))
the error:
1. Unhandled java.lang.ClassNotFoundException
com.foo.bar.Proto$Event
Any Suggestion?
Thanks
:importworks only inside thensmacro -(ns foo.core (:import (com.foo.bar Proto$Event))). At the REPL, you can use theimportfunction and you need to quote the list -(import '(com.foo.bar Proto$Event))- ez121slnsmacro. Just omited here.... - Édipo Féderle