Prahalad Deshpande
Prahalad Deshpande

Reputation: 4767

Link library name for JVM TI

I am trying to write a JVM TI sample agent on Mac OS X. I have Java 5 installed. I want to know against which dynamic library should I link my sample agent code?

Upvotes: 2

Views: 158

Answers (2)

Paul Anderson
Paul Anderson

Reputation: 71

There's no need to link against anything.

gcc -I/path/to/java/include -shared -fPIC -o libagent.so agent.c

Upvotes: 1

Michael Barker
Michael Barker

Reputation: 14378

It's libjvm.so on Linux, so I suspect something similar on the Mac.

Upvotes: 0

Related Questions