riemann.io将jar添加到classpath [英] riemann.io add jar to classpath

查看:184
本文介绍了riemann.io将jar添加到classpath的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了自定义clojure函数,我想在我的riemann配置中使用。我使用leiningen来构建包含我的函数的jar文件(包含依赖关系)。

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 ?

推荐答案

我只有这样才找到了这个jar文件。我不确定这是否正确的方法:

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.jarriemann.bin /path/to/riemann-0.2.6/etc/riemann.config

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

这篇关于riemann.io将jar添加到classpath的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆