Somewhat specific to Ubuntu, or at least Linux: install Java with SDKman
which is somewhat like RVM
but for Java. Quite simple to install, it will then manage your JDK
versions.
Additionally, umake
, or ubuntu-make
, will install your IDE or other developer tools. This utility is best installed through the snap
package manager to get the latest version.
From umake
it's a simple command to then install developer tools such as NetBeans
. Currently this installs NB
8.2 which will not run on any JDK nine or higher.
Use SDKman
to manage your JDK
version (and gradle
, and kotlin
, and ...). Use umake
to handle your IDE version.
My two cents
In the next week or so, umake
should upgrade to NetBeans
o. There was a bit of a mixup when Apache
took over but the umake
maintainers are on the ball.
Or, just download NB
9 directly. You'll have to use an older JDK, as specified in the first answer by user5377037.
Why are you running NB
8.x?