Apache NetBeans 10.0 is the latest version of NetBeans IDE and if you want to learn how to install it on Ubuntu, the steps below should be a great place to start… Apache NetBeans is the open source version of the NetBeans platform which its source code was donated by Oracle to the Apache Software Foundation…
If you’re going to be developing applications based on Java and you need a great development platform to manage your codes, then you might want to start on Apache NetBeans IDE…
This brief tutorial is going to show students and new users how to easily install the community version of NetBeans IDE on Ubuntu 16.04 / 18.10 / 18.04 desktops… This post can also be applied to previous and future releases of Ubuntu.
The layout is great, the features are many and it should allow developers to create great applications with ease.
For more about Apache NetBeans, please check this link.
Since NetBeans is based on Java and requires Java in order to function, you’ll want to install Java JDK… The open source version of JavaJDK works great, so use the steps below to install and configure it on Ubuntu…
Step 1: Install OpenJDK on Ubuntu
Run the commands below to install OpenJDK on Ubuntu desktop….
sudo apt update sudo apt install default-jdk
That should install the latest OpenJDK on Ubuntu… my test with NetBeans and OpenJDK ran without issues….
After installing OpenJDK, run the commands below to configure it as the default JDK runtime for Ubuntu… To find out which version of JDK to run, type the commands below:
sudo update-alternatives --config java
If you have multiple versions, you’ll see OpenJDK on the list… If only OpenJDK is installed, you should see a message that there is only one alternative for Java…
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-11-openjdk-amd64/bin/java Nothing to configure.
Take notes of where JAVA is located…
Next, copy the installation path of your preferred JDK home. Next, open the /etc/environment file:
sudo nano /etc/environment
Add the following line, at the end of the file:
Close out and save… Then run the commands below to apply…
When you’re done, OpenJDK should be installed and ready touse…
Step 2: Downloading Apache NetBeans
After installing OpenJDK to your system, run the commands below to download Apache NetBeans 10.0… then extract the downloaded content into your home directory…
cd /tmp wget -c https://www-us.apache.org/dist/incubator/netbeans/incubating-netbeans/incubating-10.0/incubating-netbeans-10.0-bin.zip unzip incubating-netbeans-10.0-bin.zip -d ~/
Step 3: Configure Apache NetBeans
A new netbeans folder should be created into your home directory…
To run NetBeans, use the steps below to configure it… First, re-open the /etc/environment file…
sudo nano /etc/environment
Then add the line below into the file just below the line for OpenJDK.
Replace richard with your own user account…
When you’re done, the complete environment file should look like this:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64" export PATH=$PATH:"/home/richard/netbeans/bin/"
Save the exit
Finally, run the commands below to apply
After applying the commands above, just type netbeans on your console to start it up…
That should start it up and you can begin customizing your environment…
Start building your Java applications!
This post shows you how to install Apache NetBeans on Ubuntu systems… NetBeans IDE is a great application that allows to to build great applications.
You must have JavaJDK or OpenJDK installed in order to have NetBeans running.
You may also like the post below: