1. vi /Applications/eclipse/Eclipse.app/Contents/Eclipse/eclipse.ini
输入
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/bin