一、安装jadx
brew install jadx
二、运行 jadx
jadx-gui
问题:
运行jadx,报错
ERROR: JAVA_HOME is set to an invalid directory: @@HOMEBREW_JAVA@@
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
解决:
未指定java路径,没安装java环境的,先安装
1、查看java安装路径,终端执行
/usr/libexec/java_home -V (注意V是大写)
2、指定java路径,终端执行 (=号后面换成java具体的安装路径)
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home
3、使bash_profile生效,终端执行
source ~/.bash_profile
网友评论