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

2017-10-17 Thread MMM via lttng-dev
I checked all libraries which are listed in result of "ldd /usr/bin/lttng"  command. Non of them are exit in /usr/local/lib. At present, I am going to reinstall my Ubuntu and check the status of my problem in the new Ubuntu. Could you please let me know which method for installing LTTng is

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

2017-10-16 Thread Philippe Proulx
On Mon, Oct 16, 2017 at 8:13 AM, Alexandre Montplaisir wrote: > > > > On 2017-10-14 06:18 PM, MMM wrote: > > I installed LTTng from source at first. While after that, I also reinstall > > it from PPA. Is it the cause of my problem? > > Perhaps! Having a second

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

2017-10-16 Thread Alexandre Montplaisir
On 2017-10-14 06:18 PM, MMM wrote: > I installed LTTng from source at first. While after that, I also reinstall > it from PPA. Is it the cause of my problem? Perhaps! Having a second installation in parallel is a common source of errors, because a binary from a given version may try to link

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

2017-10-14 Thread MMM via lttng-dev
I installed LTTng from source at first. While after that, I also reinstall it from PPA. Is it the cause of my problem?On Friday, October 13, 2017, 11:57:33 PM GMT+3:30, Alexandre Montplaisir wrote: On 2017-10-12 03:38 PM, MMM wrote: > Dear Alex, > > As I

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

2017-10-13 Thread Alexandre Montplaisir
On 2017-10-12 03:38 PM, MMM wrote: > Dear Alex, > > As I mentioned, I used sample examples. for instance, I used mentioned > simple program that you told tracing it return some result. While, I > can not receive any result from tracing it. Also, I use Ubuntu 16.04 > LTS and lttng 2.9.5. Besides,

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

2017-10-12 Thread MMM via lttng-dev
Dear Alex, As I mentioned, I used sample examples. for instance, I used mentioned simple program that you told tracing it return some result. While, I can not receive any result from tracing it. Also, I use Ubuntu 16.04 LTS and lttng 2.9.5. Besides, the output of asked command is 

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

2017-10-12 Thread Alexandre Montplaisir
On 2017-10-11 06:05 PM, MMM wrote: > Dear Alex, > > Thanks for your attention. I executed your commands step by step. > While, again I received previous errors which are  > > [error] Cannot open any trace for reading. > [error] opening trace "[path]/lttng-traces/auto-20171011-145947" for >

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

2017-10-11 Thread MMM via lttng-dev
Dear Alex, Thanks for your attention. I executed your commands step by step. While, again I received previous errors which are  [error] Cannot open any trace for reading.[error] opening trace "[path]/lttng-traces/auto-20171011-145947" for reading. [error] none of the specified trace paths could

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

2017-10-11 Thread Alexandre Montplaisir
Hi, I tried compiling and running your program, and it runs fine on my end. Here is what I did: saved the snippet below to "Hello.java" $ apt install liblttng-ust-agent-java $ javac -cp /usr/share/java/lttng-ust-agent-jul.jar Hello.java $ lttng create $ lttng enable-event -a -j $ lttng start $

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

2017-10-10 Thread MMM via lttng-dev
Dear Philippe, I tried with all options, while my trace result was empty yet and the error message was shown again. Indeed, LTTng did not create a folder for saving trace result.  Thanks a lot for your guidance in advance. Mehdi. On Wednesday, October 11, 2017, 12:28:59 AM GMT+3:30,

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

2017-10-10 Thread Philippe Proulx
On Tue, Oct 10, 2017 at 4:12 PM, MMM wrote: > Dear Philippe, > > Thanks a lot for your consideration. I solved former problem. While, I faced > with a new problem. Indeed, when I create a LTTng session, start it and > finally stop LTTng, I could not find trace files in

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

2017-10-10 Thread MMM via lttng-dev
Dear Philippe, Thanks a lot for your consideration. I solved former problem. While, I faced with a new problem. Indeed, when I create a LTTng session, start it and finally stop LTTng, I could not find trace files in mentioned folder. My java code is 

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

2017-10-08 Thread Philippe Proulx
On Sun, Oct 8, 2017 at 4:15 PM, MMM via lttng-dev 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 > >