Hey, everyone, I hope you all are doing great so today I will show you How to Install Netbeans IDE 8.0.2 on Ubuntu 18.04.2 LTS. NetBeans is an open-source IDE(Integrated Development Environment) for Java.
Installing any software on Windows or Mac is pretty straight forward but when things come to Linux you have to take certain steps to ensure that the installation is a success.
The IDE very features extensive and provide a much wide range of tools, template, and samples. As it uses most of the plugins that are developed by the community it makes NetBeans very extensible which make it well suited for software development.
Also Read: How to Use 7Zip in Linux [Quick Tip]
- Computer with at least 2GB of RAM.
- Java SE Development Kit 8 as it does not work with the higher version of JDK.
So, first of all, you have to download the setup for NetBeans 8.0.2 from here.
When downloading from the above link don’t forget to change the platform option to Linux(x86/x64) from the drop-down menu like this.
After downloading the setup you have to install the JDK (Java Development Kit) package. The JDK allows developers to create Java programs that can be executed and run by the JVM (Java Virtual Machine) and JRE (Java Runtime Environment). When you download your JDK, you will need to select the version of Java you want to use.
Now if you try to install NetBeans 8.0.2 with the latest version JDK 11 it will give you an error like this,
“JAVA SE was not found on this computer. Make sure JDK is properly installed and run the installer again. You can specify valid JDK location using –javahome installer argument.”
Installing Java JDK 8:
So, in this case, user can use both OpenJDK or Oracle Java JDK we will cover both methods so if you face some issues with OpenJDK you also have the other option.
- First, you need to add the following repository in your package database you can do so by running the following command.
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update
2. After you are finished updating your packages database you can run the following command to install the Oracle JDK.
sudo apt-get install oracle-java8-installer
If you are rocking multiple installs of Java JDK you can also install this package to make JDK 8 to be the default.
sudo apt-get install oracle-java8-set-default
Note: This repository contains both newer and older version of Java JDK.
NetBeans 8.0.2 requires JDK 8, and it will not work with any other version of Java greater than 8. The package contains just the Java Runtime Environment. If you want to develop Java programs then install the
openjdk-8-jdk package and package and here is how you can install it.
Type this in the terminal,
sudo apt-get install openjdk-8-jdk
y ‘ and it will complete the rest of the installation.
Now that Java is installed in our system we have to install net-beans. Now when you download net-beans its file will be saved with
What is shell and shell script or .sh files?
A shell is a software that provides an interface for an operating system’s users to provide access to the kernel’s services.
A shell script is a text file that contains a sequence of commands for a Unix-based operating system. Files with .sh extension are called a shell script.
The first thing that you will have to do is make the Bash script executable as it does not have execution permission by default to do that run this command while being in the Download directory.
sudo chmod +x
Or if you don’t want to give execution permission to the file you can run it like this.
sudo bash netbeans-8.0.2-linux.sh
Now to execute this file you have to type this in terminal
And then press enter and it will start installing as follows
Accept the agreement.
Choose the destination where you want to save your files and IDE.
Check for updates and click install.
And now NetBeans has installed on your Linux system and I hope you find this article helpful. If you have any question use the comment section feel free to leave some suggestions too.