tracecompass mac 安装JVM shared library does not contain the JNI_CreateJavaVM symbol问题解决
最近在学习tracecompass,因为mac 系统版本有点高,直接运行发现起不来
可能的原因
- jvm 版本问题
可以通过修改Info.plist 文件添加jvm 信息 - 依赖库签名问题
我的jvm 是正确的,但是还是提示上边的问题,结果通过直接命令行启动,发现提示签名问题
如下
ver/libjvm.dylib' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs)
解决方法:
禁用签名,可以通过codesign 解决,这样就起来了
codesign --remove-signature ./tracecompass
参考资料
https://github.com/dart-lang/sdk/issues/38314
https://stackoverflow.com/questions/61449772/mapping-process-and-mapped-file-have-different-team-ids
https://stackoverflow.com/questions/25753966/eclipse-jvm-shared-library-does-not-contain-the-jni-createjavavm-symbol
https://github.com/dbeaver/dbeaver/issues/14141