Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmtool javah java9+ 上会编译失败 #2105

Closed
1 task done
1994 opened this issue Feb 10, 2022 · 2 comments
Closed
1 task done

vmtool javah java9+ 上会编译失败 #2105

1994 opened this issue Feb 10, 2022 · 2 comments

Comments

@1994
Copy link
Contributor

1994 commented Feb 10, 2022

  • 我已经在 issues 里搜索,没有重复的issue。

环境信息

  • Arthas 版本: 3.5.5
  • 目标进程的JVM版本: java 9 +

重现问题的步骤

java9+ 删除了javah ,mojohaus/maven-native#17

@loongs-zhang
Copy link
Contributor

看下 #1920

javac -h . Main.java
# 两个命令都可以,但是从JDK10开始javah被废弃
# 因此推荐使用上面的命令
javah Main

@hengyunabc
Copy link
Collaborator

目前需要编译target为 jdk 6,所以最好只用jdk 8来编译,更新了文档: https://github.com/alibaba/arthas/blob/master/CONTRIBUTING.md#%E5%BC%80%E5%8F%91%E8%80%85%E7%9B%B8%E5%85%B3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants