ホーム 暮らし Minecraft - Enabling Forge (or NeoForge) on macOS

Minecraft - Enabling Forge (or NeoForge) on macOS

雨宮 千夏 雨宮 千夏 • 更新: • 公開: • 読了約 18 分
目次

0. Background and context

n926c2db09357

When using mods in Minecraft, you will need to use Forge (or NeoForge).
On Windows, it is possible to execute the .jar file, which is the installer for Forge (or NeoForge).
However, on macOS, Java is not installed by default, so you cannot execute .jar files.
This article explains the steps to install OpenJDK on macOS using Homebrew, set up an environment where you can open .jar files, and finally install Forge (or NeoForge).
Please note that the installation steps for Forge (or NeoForge) itself are not covered.

To read this article, it is helpful to have basic knowledge of terminal / git / homebrew / vi.

The information for the machine used to write this article is as follows.

## 使用マシン情報(macOS)

- モデル名: MacBook Pro (Mac14,7)
- CPU: Apple M2
- メモリ: 24 GB
- macOSバージョン: macOS 15.5 (24F74)

1. Installing Command Line Tools (CLT)

When installing OpenJDK using Homebrew, you will use external tools such as git.
To prepare for this, install the Command Line Tools (CLT).
Open the terminal and execute the following command.

xcode-select --install

When you execute the command, the installation screen will launch.
Follow the instructions to perform the installation.
* If a message appears stating that it is already installed, you can skip this step.

The following is for reference.


2. Installing Homebrew

I am presenting two methods for installing Homebrew.
Basically, 2-1. Standard installation is fine.
If you are curious, you might want to try 2-x. Installing in a separate environment from other users (Optional).

2-1. Standard installation

Install Homebrew.
Open the terminal, copy and paste the command listed on the official page, and execute it.
* After execution, additional commands that the user needs to run will be displayed in the terminal. Do not forget to execute these as well.

2-x. Installing in a separate environment from other users (Optional)

For example, if there are other users on the macOS and you want to keep your environment separate from them, install Homebrew as follows.

① Creating the ~/Applications directory

Create a directory to install user-specific applications.
* Depending on the macOS version, the ~/Applications directory may already exist. In that case, you can skip this step.

cd ~
mkdir Applications

② Cloning the Homebrew repository

Clone the Homebrew repository from GitHub.
At this time, git must be installed on the macOS.
* git is installed in 1. Installing Command Line Tools (CLT).

cd ~/Applications
git clone https://github.com/Homebrew/brew homebrew

3. Add settings

Set the path so that the cloned Homebrew (brew command) can be executed from the terminal.
Add the following to ~/.zshrc.
You can open .zshrc using something like vi ~/.zshrc.

export HOMEBREW_PREFIX="$HOME/Applications/homebrew"
export HOMEBREW_REPOSITORY="$HOME/Applications/homebrew"
export HOMEBREW_CELLAR="$HOME/Applications/homebrew/Cellar"
export PATH="$HOMEBREW_PREFIX/bin:$PATH"
export PATH="$HOMEBREW_PREFIX/sbin:$PATH"

4. Apply settings

Apply the settings by running source ~/.zshrc in the terminal or by reopening the terminal.

5. Verify settings

brew --version to check the version of the installed Homebrew.
There is no problem if it is output as follows.

username@MacBook-Pro ~ % brew --version
Homebrew 4.5.10-42-g0dbefc9
username@MacBook-Pro ~ % 

3. Installing OpenJDK

1. Search for OpenJDK

Use the brew command to check the installable OpenJDK versions.
Run brew search openjdk to get the search results.

username@MacBook-Pro ~ % brew search openjdk
==> Formulae
openjdk             openjdk@17          openjdk@8           openjph
openjdk@11          openjdk@21          openj9              openvdb

==> Casks
adoptopenjdk               microsoft-openjdk@11       microsoft-openjdk@21
microsoft-openjdk          microsoft-openjdk@17       openttd
username@MacBook-Pro ~ % 

From the results above, you can see that OpenJDK versions 8, 11, 17, and 21 can be installed.
* Some items have numbers like openjdk@, which indicate version information.
* Some items are listed as just openjdk instead of openjdk@; if you select this, the latest stable version of OpenJDK will be installed.

In this guide, we will install openjdk@21.

2. Install OpenJDK

Run brew install openjdk@21 to install OpenJDK.
After the installation is complete, run brew search openjdk again, and you can confirm that there is a ✔ (check mark) to the right of openjdk@21 as shown below.

username@MacBook-Pro ~ % brew search openjdk
==> Formulae
openjdk             openjdk@17          openjdk@8           openjph
openjdk@11          openjdk@21 ✔        openj9              openvdb

==> Casks
adoptopenjdk               microsoft-openjdk@11       microsoft-openjdk@21
microsoft-openjdk          microsoft-openjdk@17       openttd
username@MacBook-Pro ~ %

3. Add settings

Set the path so that the installed OpenJDK (java command) can be executed from the terminal.
Add the following to ~/.zshrc.
You can open .zshrc using something like vi ~/.zshrc.

export PATH="/Users/username/Applications/homebrew/opt/openjdk@21/bin:$PATH"
export JAVA_HOME="/Users/username/Applications/homebrew/opt/openjdk@21"

4. Apply settings

Apply the settings by running source ~/.zshrc in the terminal or by reopening the terminal.

5. Verify settings

java --version to check the version of the installed OpenJDK.
There is no problem if it is output as follows.

username@MacBook-Pro ~ % java --version
openjdk 21.0.8 2025-07-15
OpenJDK Runtime Environment Homebrew (build 21.0.8)
OpenJDK 64-Bit Server VM Homebrew (build 21.0.8, mixed mode, sharing)
username@MacBook-Pro ~ % 

4. Installing Forge (or NeoForge)

From here on, we will install Forge or NeoForge.
However, since there are many installation guides for Forge and NeoForge on the internet, please refer to those.
In this article, I will only provide links to the installer download pages.

Forge can still be used with the latest 1.21 versions as before.
NeoForge can be used from 1.20 onwards, but according to the official source, the 1.20 series has stability issues, so it is recommended to use it with 1.21 or later.
NeoForge is a fork of Forge, and it seems the project team was newly formed from Forge.
Please refer to the official blog below for what happened.

As mentioned above, the Minecraft versions available for Forge and NeoForge differ, and there are also mods that cannot be used with NeoForge due to version issues.
Regarding this, you should decide which one to install after checking the versions of the mods you want to use and their compatibility with NeoForge.
Currently, the installer GUI and installation method are the same for both Forge and NeoForge.

4-1. Installing Forge

The installer can be downloaded from the link below.
It is a familiar webpage.

4-2. Installing NeoForge

The installer can be downloaded from the link below.


同じカテゴリの記事

雨宮 千夏
デジタルマーケター 雨宮 千夏
プロフィールを見る →

アイドルと音楽シーンの取材を担当。公式サイトの公演情報、リリース告知、公開チャートを照合してから構成しています。

おすすめの関連記事