雖然已經有 Apple M1 MacBook 可用的ARM64 Java,但是,目前Eclipse 針對Apple macOS ARM64版本,尚未正式發布。安裝時,還是只能以macOS x64安裝方式。

1. Install Java


#Option 1 x86 Java
curl -C – https://download.java.net/java/ga/jdk11/openjdk-11_osx-x64_bin.tar.gz
tar xf openjdk-11_osx-x64_bin.tar.gz
sudo mv jdk-11.jdk /Library/Java/JavaVirtualMachines/

#Option 2 Azul 64bit Java (一鍵安裝)
https://www.azul.com/downloads/ç-community/?package=jdk

#Option 3 Oracle JDK (一鍵安裝)
https://drive.google.com/file/d/18-nzASNVHZbwRL64pyRtRI_nQzxSkXpR/view?usp=sharing

2. Install PostgreSQL Client Library

#Install Brew & pglib
https://blog.timescale.com/tutorials/how-to-install-psql-on-mac-ubuntu-debian-windows/

3.安裝 Maven

https://maven.apache.org/install.html
export PATH=/opt/apache-maven-3.6.3/bin:$PATH

4.設定z-shell

vi ~/.zshrc

export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
export PATH="/opt/apache-maven-3.6.3/bin:$PATH"
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home"

4.安裝 GIT 工具

xcode-select --install

5.安裝PostgreSQL

Postgres

By Ray Lee (System Analyst)

iDempeire ERP Contributor, 經濟部中小企業處財務管理顧問 李寶瑞

Leave a Reply

Your email address will not be published. Required fields are marked *