iDempiere

Apple M1 Install OpenJDK (Java)

2021-03-04 最後更新:2026-02-20) · 3 分鐘 · Ray Lee (System Analyst)

雖然已經有 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

English Version

Although ARM64 Java is already available for the Apple M1 MacBook, Eclipse has not yet officially released an ARM64 version for Apple macOS. During installation, you can only use the macOS x64 installation method.

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 (One-click install)
https://www.azul.com/downloads/ç-community/?package=jdk

#Option 3 Oracle JDK (One-click install)
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. Install Maven

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

4. Configure 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. Install GIT Tools

xcode-select --install

5. Install PostgreSQL

Postgres

日本語版

Apple M1 MacBook向けのARM64 Javaは既に利用可能ですが、EclipseはまだApple macOS ARM64版を正式にリリースしていません。インストール時には、macOS x64のインストール方法でのみ行えます。

1. Javaのインストール


#オプション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/

#オプション2 Azul 64bit Java(ワンクリックインストール)
https://www.azul.com/downloads/ç-community/?package=jdk

#オプション3 Oracle JDK(ワンクリックインストール)
https://drive.google.com/file/d/18-nzASNVHZbwRL64pyRtRI_nQzxSkXpR/view?usp=sharing

2. PostgreSQLクライアントライブラリのインストール

#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

Ray Lee (System Analyst)
作者 Ray Lee (System Analyst)

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