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
- Install the required JDK
- Install Apache Ant
- Clone the repository
git clone https://github.com/apache/netbeans.gitcd netbeans- Run the build
antThis command compiles the IDE and assembles the NetBeans platform.
- Run NetBeans
After the build completes, you can start the IDE using:
./nbbuild/netbeans/bin/netbeansTips:
- 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.properties
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"