Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save olets/0d9bfe093bb7411b7dd7bef2c9d345fc to your computer and use it in GitHub Desktop.
Save olets/0d9bfe093bb7411b7dd7bef2c9d345fc to your computer and use it in GitHub Desktop.
Install Netbeans on macOS with Homebrew

Netbeans requires Java but the Netbeans Homebrew formula does not include Java as a dependency so it must be installed manually first:

brew install java

Per the Netbeans formula caveats,

For the system Java wrappers to find this JDK, symlink it with

(note the following paths are for an Apple Silicon machine. as of this writing Intel users will have a different path)

sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

Then install Netbeans

brew install netbeans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment