2

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?

eh9
  • 7,340
  • 20
  • 43
Prahalad Deshpande
  • 4,709
  • 1
  • 20
  • 22

2 Answers2

1

There's no need to link against anything.

gcc -I/path/to/java/include -shared -fPIC -o libagent.so agent.c
eh9
  • 7,340
  • 20
  • 43
0

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

Michael Barker
  • 14,153
  • 4
  • 48
  • 55