问题
I have written custom clojure functions that I want to use in my riemann configuration. I am using leiningen to build jar file (with dependencies) containing my functions. What is the right way to include this jar file in the classpath when starting riemann ?
回答1:
I have only found this way. I'm not sure whether this is the right way :
java -cp "/path/to/my/custom.jar:/path/to/riemann-0.2.6/lib/riemann.jar" riemann.bin /path/to/riemann-0.2.6/etc/riemann.config
回答2:
I think, you can config:
EXTRA_CLASSPATH= path jar
in
/etc/sysconfig/riemann with Centos.
But i have a problem is cannot add multi EXTRA_CLASSPATH in riemann?
Pls help me, thanks a lot!
来源:https://stackoverflow.com/questions/27766730/riemann-io-add-jar-to-classpath