In the next article we are going to take a look at installing NetBeans 8.2 on Ubuntu 18.04. As I suppose everyone knows by now, this is an IDE (integrated development environment) available for different platforms. About this program, a colleague already spoke to us in a very detailed way in a previous article.
NetBeans IDE provides users with a very powerful platform that enables programmers to easily develop applications Java-based web, mobile applications and desktops. Many say it is one of the best IDEs for C / C ++ programming. It also provides very useful tools for PHP programmers. The IDE provides support for many languages such as PHP, C / C ++, XML, HTML, Groovy, Grails, Ajax, Javadoc, JavaFX and JSP, Ruby and Ruby on Rails.
The publisher is feature rich and provides a wide range of tools and templates. It is also highly extensible using plugins developed by the community, which makes it suitable for software development.
Netbeans it is available in the Ubuntu repositories, so if we want to have a stable version in an easy way, we only have to go to the Ubuntu Software option. Once there we will only have to look for the word Netbeans and press the "Install" button. If on the contrary we want install a newer and custom version, we can do it manually. In this article we are going to see how to install the latest version of NetBeans today, which is 8.2. I am going to do this installation on Ubuntu 18.04, although it can also be done on Debian and Linux Mint.
First of all, we must clarify that to install version 8.2 of Netbeans we need to meet a couple of requirements on our computer. The first is that a minimum of 2 GB of RAM is required. And that we will have to have in our team the Java SE Development Kit (JDK) 8. It is necessary to install this IDE. NetBeans 8.2 does not run with JDK9, and doing so may cause errors.
Install Java JDK 8
A colleague already told us about the installation of different versions of Java on our Ubuntu system. To install the Java 8 JDK version we need, we will first add the webupd8team / java PPA to our system. To do so, we open a terminal (Ctrl + Alt + T) and type:
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update
Once our software listing has been added and updated, we will search for packages with the name oracle-java8 as shown below and finish installing:
apt-cache search oracle-java8 sudo apt-get install oracle-java8-installer
If you have more than one Java installed on your system, you can install the oracle-java8-set-default package to set Java 8 as the default:
sudo apt-get install oracle-java8-set-default
Install NetBeans IDE 8.2 on Ubuntu 18.04
Now using your preferred browser, go to the IDE download page and download the latest version from the NetBeans installer.
You can also download the NetBeans installer script on your system through the wget utility. To do this we open a terminal (Ctrl + Alt + T) and write:
wget -c http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh
Once the download is complete, in the working directory if we use wget or in the place where we save the download from the browser, we will find the NetBeans installer. Now using the following command, we will make the script executable. Right after we will start with the installation:
chmod +x netbeans-8.2-linux.sh ./netbeans-8.2-linux.sh
After running the above commands, the installer 'welcome window' will appear. We will click Next to continue (or customize your installation by clicking Customize) and follow the installation wizard.
Then we will have to read and accept the terms in the license agreement. We continue on by clicking Next.
As you can see in the previous screenshot, we will select the NetBeans IDE 8.2 installation folder and the folder in which we have the JDK installed. We continue by clicking Next.
In the screen that we see now, we also select the GlassFish server installation folder. As before, we continue by clicking Next.
On the next screen, where the installation summary is shown. Here we will enable automatic updates for installed add-ons via the checkbox. Now we will click Install to begin the installation.
When the installation is complete, we will only have to click on Finish. We can now enjoy NetBeans IDE. We just have to look for it on our computer and click on the launcher.
Removing this program is very simple. We will only have to go to the folder that we selected for the installation. Once there we will meet a file named uninstall.sh. This will be the file to run to completely remove the IDE from our team. In the terminal (Ctrl + Alt + T) we will only have to execute, from the folder where the uninstall file is located: