Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Mac OS X 上编写 JVM TI 示例代理。我安装了 Java 5。我想知道我应该将我的示例代理代码链接到哪个动态库?
没有必要链接任何东西。
gcc -I/path/to/java/include -shared -fPIC -o libagent.so agent.c
它libjvm.so在 Linux 上,所以我怀疑 Mac 上有类似的东西。
libjvm.so