Skip to content

NetBeans

Building NetBeans from source, cleaning the Recent Projects list and choosing the JDK it runs on.

1 min read

Build and run from source

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

This command compiles the IDE and assembles the NetBeans platform.

  1. Run NetBeans

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

Terminal window
./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"

Related articles

1 min read

ngrok

Exposing a local server to the internet with ngrok tunnels for testing and demos.

  • Developer Tools
1 min read

vim

Vim and Neovim setup: vimtex with Zathura, Neo-tree, packer.nvim and vim-plug.

  • Developer Tools
1 min read

Sonar

Static code analysis with SonarQube and SonarCloud from Maven builds.

  • Observability & Testing
  • Developer Tools

Type to search the whole site.