Netbeans didn't work at first because I didn't have Java installed and now, I have the JDK 10 installed and it won't open -,-. Before I installed JDK 10, I installed JDK 8, it worked fine, but when I can't do stuff after the installation because when I started the app, it says I have to disable the modules and stuff. I am really lost because I am new to Ubuntu, I used to be a Mac user and I dual-booted Ubuntu. I had trouble installing a lot of things because it requires shell (or Terminal) commands. ESPECIALLY Java! Why doesn't it have an installer like the one for Macs and Windows? But I didn't care so I took the matter bare-hand. Instead of fixing, I think I made it far-more worse! Please help me! P.S. Now, Netbeans can't even start! And I read the logs, it said, " Updating from such a repository can't be done securely, and is therefore disabled by default."
Netbeans and Java versions seems to be either incompatible or either of the two is broken. Ubuntu's default jdk is JDK 10 but has Netbeans 8.1. Also, release notes of Netbeans 8.2 clearly states: The tested JDK for this release is JDK 8u101 for Windows, Linux, and OS X. The 8.2 version of the IDE cannot be installed or run on the JDK older than JDK 8.
Note: I have also tried using Netbeans with JDK8 which is already present in repository and it's also having some sort of bugs.
I have also observed that not only Netbeans but Eclipse is also having some problems. So, what I did is first of all I uninstalled java completely from my system following steps from here. Then downloaded Netbeans+JDK8 from here. I assume that your downloads go in
~/Downloads
folder.Then follow these steps:
For Installation of Netbeans 9.0 see here.