How to Install NetBeans IDE 24 in Ubuntu / Debian

Last updated: January 2, 2025 — 1 Comment

This tutorial shows how to install the most recent Apache NetBeans IDE v24 in Ubuntu 22.04, Ubuntu 24.04, Ubuntu 24.10, and Debian 12 Bookworm, and their based systems, such as Linux Mint 22/21.

NetBeans is a free open-source (Apache License 2.0) Java IDE, that also supports other languages like PHP, C, C++, HTML5, and JavaScript via extensions.

NetBeans IDE 24


The IDE is NOT available in Debian/Ubuntu repository, but easy to install via 3 ways. They include:

  • Native .deb packages.
  • Snap packages runs in sandbox.
  • And community maintained (unofficial) Flatpak package.

Option 1: Install NetBeans via Snap package

NOTE: This method does not work in Linux Mint, since it blocks Snap package out-of-the-box.

For Ubuntu, Snap package is the easiest way to install and update the Java IDE, though it runs in sandbox environment.

Simply launch App Center (or Ubuntu Software for 22.04 & earlier), then search & install ‘apache netbeans’.

The package supports amd64 (Intel/AMD CPUs) and arm64 (Raspberry Pi, Apple Silicon, etc) CPU architecture types.

And, you may run the command below instead to install from a terminal window:

sudo snap install netbeans --classic

Option 2: Install NetBeans via native .deb package

The IDE provides native .deb and .rpm packages for Debian, Ubuntu, Fedora and their based systems.

Click ‘Download’ via the link button above, then choose download the .deb package. Finally, you may double-click on the package in file manager to open with system package manager (e.g., Software Install, App Center, or Gdebi) and install it.

If your desktop does not have a graphical app to handle the .deb package, then open terminal (from either start menu or “Open in Terminal” context menu) and run command to install it:

sudo apt install ~/Downloads/apache-netbeans_24-1_all.deb

Here assumes that you saved the package in user Downloads folder. For other location, you may drag’n’drop file into terminal to auto-insert path to file.

Option 3: Install NetBeans via Flatpak package

For choice, there’s also a community maintained flatpak package that runs in sandbox environment.

Linux Mint 21/22 users can easily search for and install it from Software Manager, after enabled unverified Flatpaks in Preferences dialog.

NetBeans in Linux Mint Software Manager

While Debian/Ubuntu users can install the Flatpak by running the 2 commands below one by one:

  • First, open up a terminal window and run command to install flatpak daemon:
    sudo apt install flatpak
  • Then, run single command to install package from Flathub repository:
    flatpak install https://dl.flathub.org/repo/appstream/org.apache.netbeans.flatpakref

After that, search for and launch the IDE from start menu, though you may need a log out and back in. For choice, you may also start it from terminal by running flatpak run org.apache.netbeans command.

And, to check and install the updates, use command:

flatpak update org.apache.netbeans

Uninstall Apache NetBeans IDE

Depends on which package you installed, open terminal (Ctrl+Alt+T) and run one of the commands below to uninstall:

  • To remove the Snap package, either use App Center (or Ubuntu Software) or run command:
    sudo snap remove --purge netbeans
  • To remove the .deb package, use command:
    sudo apt remove --autoremove apache-netbeans
  • For the Flatpak package, use the command below to uninstall:
    flatpak uninstall --delete-data org.apache.netbeans

    While you may also run flatpak uninstall --unused to remove useless run-time libraries.

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1 |

One response to How to Install NetBeans IDE 24 in Ubuntu / Debian

  1. It is worth mentioning the possibility of using the Netbeans AppImage package:
    https://github.com/codelerity/netbeans-installers/releases

    You can also install ubuntu-make package (apt install ubuntu-make) and then install Netbeans using the following command: umake ide netbeans

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*