Did not know there was a Netbeans for Arm Linux?
Geany, Code:Blocks, Visual Studio Code and others work.
Compile it yourself?
You may need a 4GB Pi4 to compile something like this.
Depends on those dependencies.
Java now defaults to OpenJDK on Pi's.
Most Linux binaries are for x86, Pi's are Arm.
But if the source code is clean, generally stuff just compiles and works.
I get about 50% of stuff working without trouble, some needs fixing, some have x86 dependencies.
Because it is Linux there is often many choices to pick from.
Use what works.
And the 4GB Pi4's are pretty much mainstream Linux now.
Aarch64 or 64bit OS versions are out there now, with more coming.
I find Gentoo64 the most useful at the moment.
If you are just tinkering with C++, 32bit Buster Raspbian is easier.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges