- Arthas 版本: 源码master分支
- 操作系统版本: win7,32位
- JVM版本: jdk8
- 源码根目录执行
mvn -DskipTests clean package
打包成功
实际运行的结果打包失败:arthas-vmtool 模块编译失败。
[INFO] --- native-maven-plugin:1.0-alpha-11:compile (javah) @ arthas-vmtool ---
[INFO] cmd.exe /X /C "g++ -fpic -shared -o -IE:\IdeaProjects\arthas\arthas-vmtool\src\main\native\src -IE:\IdeaProjects\arthas\arthas-vmtool\target\generated-sources\annotations -IE:\IdeaProjects\arthas\arthas-vmtool\target\native\j
avah -oE:\IdeaProjects\arthas\arthas-vmtool\target\objs\jni-library.obj -c E:\IdeaProjects\arthas\arthas-vmtool\src\main\native\src\jni-library.cpp"
E:\IdeaProjects\arthas\arthas-vmtool\src\main\native\src\jni-library.cpp:2:17: fatal error: jni.h: No such file or directory
#include <jni.h>
^
compilation terminated.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for arthas-all 3.6.6:
[INFO]
[INFO] arthas-all ......................................... SUCCESS [ 3.385 s]
[INFO] web-ui ............................................. SUCCESS [02:18 min]
[INFO] math-game .......................................... SUCCESS [ 7.597 s]
[INFO] arthas-common ...................................... SUCCESS [ 2.699 s]
[INFO] arthas-spy ......................................... SUCCESS [ 1.373 s]
[INFO] arthas-vmtool ...................................... FAILURE [ 11.981 s]
[INFO] arthas-tunnel-common ............................... SKIPPED
[INFO] arthas-tunnel-client ............................... SKIPPED
[INFO] arthas-memorycompiler .............................. SKIPPED
[INFO] arthas-core ........................................ SKIPPED
[INFO] arthas-agent ....................................... SKIPPED
[INFO] arthas-client ...................................... SKIPPED
[INFO] arthas-boot ........................................ SKIPPED
[INFO] arthas-agent-attach ................................ SKIPPED
[INFO] arthas-site ........................................ SKIPPED
[INFO] arthas-packaging ................................... SKIPPED
[INFO] arthas-spring-boot-starter ......................... SKIPPED
[INFO] arthas-tunnel-server ............................... SKIPPED
[INFO] arthas-testcase .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:47 min
[INFO] Finished at: 2022-10-14T14:19:10+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:native-maven-plugin:1.0-alpha-11:compile (javah) on project arthas-vmtool: Error executing command line. Exit code:1
如何解决,是不是不支持windows7 32位?