[lttng-dev] Problem in finding Jar file of LTTng for adding to Java project

Philippe Proulx eeppeliteloop at gmail.com
Sun Oct 8 21:35:28 UTC 2017


On Sun, Oct 8, 2017 at 4:15 PM, MMM via lttng-dev
<lttng-dev at lists.lttng.org> wrote:
> Dear Users,
>
> I am beginner in tracing using LTTng. At present, I am going to trace a java
> program in  Ubuntu, while I faced with a problem. When I install LTTng on
> Ubuntu, I also install
>
> "liblttng-ust-agent-java" by "apt-get install liblttng-ust-agent-java"
> command in Ubuntu. But, when I want to import any libraries related to LTTng
> such as "org.lttng.ust.agent.jul.LttngLogHandlerorg.lttng.ust.LTTngAgent" to
> my program, it is marked as unknown package. Indeed, I could not find LTTng
> Jar file for adding it to my program libraries. Furthermore, I searched in
> all files and folders, while I could not find Jar file. Could you please
> help me to understand the cause of this problem and solve it.

I'm not a Ubuntu specialist, but from
<https://packages.ubuntu.com/zesty/all/liblttng-ust-agent-java/filelist>,
I would say:

* /usr/share/java/lttng-ust-agent-jul.jar
* /usr/share/java/lttng-ust-agent-log4j.jar

On 16.04, it's:

* /usr/share/java/liblttng-ust-agent.jar

Add the required JAR file to your classpath.

Have a look at <http://lttng.org/docs/v2.9/#doc-java-application>.

Phil

>
>
> Best regards,
>
> Mehdi.
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>


More information about the lttng-dev mailing list