NetBeans
September 9, 2022

Build and run from source

  1. Install the required JDK
  2. Install Apache Ant
  3. Clone the repository
1
2
git clone https://github.com/apache/netbeans.git
cd netbeans
  1. Run the build
1
ant

This command compiles the IDE and assembles the NetBeans platform.

  1. Run NetBeans

After the build completes, you can start the IDE using:

1
./nbbuild/netbeans/bin/netbeans

Tips:

  • Make sure JAVA_HOME points to the correct JDK
  • Running ant clean helps if the build fails due to cached artifacts
  • The nbbuild directory contains most of the build scripts and configuration

How to remove projects from the Recent Projects list in the Start Page?

/Users/<username>/Library/Application Support/NetBeans/<netbeans-version>/config/Preferences/org/netbeans/modules‌​/projectui.propertie‌​s

How can I set the JDK NetBeans runs on?

Update the netbeans.conf. You may need administrator privileges to edit the file.

/Applications/Apache NetBeans.app/Contents/Resources/netbeans/etc/netbeans.conf

and change the following line to point it where your Java installation is:

netbeans_jdkhome="/usr/local/opt/openjdk/libexec/openjdk.jdk/Contents/Home"