一、设备型号
二、安装
操作
下载后直接安装会提示“磁盘上已经有了更高版本”,
解决方法
推出刚刚安装的pkg
打开Mac 自带的脚本编辑器,不是文本编辑器;输入以下代码
set theDMG to choose file with prompt "Please select javaforosx.dmg:" of type {"dmg"}
do shell script "hdiutil mount " & quoted form of POSIX path of theDMG
do shell script "pkgutil --expand /Volumes/Java\\ for\\ macOS\\ 2017-001/JavaForOSX.pkg ~/tmp"
do shell script "hdiutil unmount /Volumes/Java\\ for\\ macOS\\ 2017-001/"
do shell script "sed -i '' 's/return false/return true/g' ~/tmp/Distribution"
do shell script "pkgutil --flatten ~/tmp ~/Desktop/ModifiedJava6Install.pkg"
do shell script "rm -rf ~/tmp"
右上角点击运行,弹出选择文件框,选择下载的dmg文件。
然后桌面会出现apk文件
三、配置profile
最后配置一下环境变量即可
打开idea就可以引用了