Install libnb-java5-java by entering the following commands in the terminal:
sudo apt update sudo apt install libnb-java5-java
Common Java Related Libraries for NetBeans
The NetBeans Platform is a set of modules, each providing their own APIs and working together or in a standalone mode. This package contains common libraries for the NetBeans Java IDE.