What does the -agentlib option of java command do. Getting error while using TakipiAgent in it

424 Views Asked by At

Can someone explain what is the use of the -agentlib option and its internal working.

To give a broader perspective I am running the below command:

java -agentlib:TakipiAgent MyClass

And it is giving me the error:

Could not find agent library TakipiAgent on the library path, with error: libTakipiAgent.so: cannot open shared object file: No such file or directory

N.B - This seeks answer to both: 1)the working of -agentlib in general (2) possible solution to the error I am getting

0

There are 0 best solutions below