注:jdk 版本不能使用1.8,版本太低,我使用的是11
官網(wǎng)下載:
官網(wǎng)下載地址:http://directory.apache.org/studio/downloads.html

brew下載:
brew的下載:http://www.itdecent.cn/p/b7b789a2ed2c
brew install apache-directory-studio

問(wèn)題:
1、
Error: No available formula with the name "apache-directory-studio"
Found a cask named "apache-directory-studio" instead. Try
brew cask install apache-directory-studio

解決方法:
rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core;
brew update
然后再輸入:brew install apache-directory-studio
2、啟動(dòng)報(bào)錯(cuò),報(bào)錯(cuò)信息為:The JVM shared library "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/../lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.
解決方法:
(1)在應(yīng)用程序中選中apache directory studio 右鍵,選擇“顯示包內(nèi)容”

(2)進(jìn)入Contents目錄,找到Info.plist文件

(3)打開Info.plist文件后,可以看到注釋<string>-vm</string>配置項(xiàng),我們需要做的就是打開這個(gè)配置項(xiàng),并且將其設(shè)置為我們系統(tǒng)的Java路徑

查看jdk路徑:
/usr/libexec/java_home -V
(4)保存修改,并重新啟動(dòng)即可。